C# 클래스 Apache.NMS.ActiveMQ.OpenWire.BaseDataStreamMarshaller

A base class with useful implementation inheritence methods for creating marshallers of the OpenWire protocol
파일 보기 프로젝트 열기: ThorTech/apache-nms 1 사용 예제들

공개 메소드들

메소드 설명
CreateObject ( ) : DataStructure
GetDataStructureType ( ) : byte
LooseMarshal ( OpenWireFormat wireFormat, Object o, BinaryWriter dataOut ) : void
LooseMarshalLong ( OpenWireFormat wireFormat, long o, BinaryWriter dataOut ) : void
LooseMarshalString ( String value, BinaryWriter dataOut ) : void
LooseUnmarshal ( OpenWireFormat wireFormat, Object o, BinaryReader dataIn ) : void
LooseUnmarshalLong ( OpenWireFormat wireFormat, BinaryReader dataIn ) : long
TightMarshal1 ( OpenWireFormat wireFormat, Object o, BooleanStream bs ) : int
TightMarshal2 ( OpenWireFormat wireFormat, Object o, BinaryWriter dataOut, BooleanStream bs ) : void
TightMarshalLong1 ( OpenWireFormat wireFormat, long o, BooleanStream bs ) : int
TightMarshalLong2 ( OpenWireFormat wireFormat, long o, BinaryWriter dataOut, BooleanStream bs ) : void
TightMarshalString2 ( String value, BinaryWriter dataOut, BooleanStream bs ) : void
TightUnmarshal ( OpenWireFormat wireFormat, Object o, BinaryReader dataIn, BooleanStream bs ) : void
TightUnmarshalLong ( OpenWireFormat wireFormat, BinaryReader dataIn, BooleanStream bs ) : long
ToHexFromBytes ( byte data ) : String

Creates the byte array into hexidecimal

ToString ( TransactionId txnId ) : String

Converts the given transaction ID into a String

ToString ( MessageId id ) : string

Converts the object to a String

ToString ( ProducerId id ) : string

Converts the object to a String

보호된 메소드들

메소드 설명
LooseMarshalBrokerError ( OpenWireFormat wireFormat, Apache.NMS.ActiveMQ.Commands.BrokerError o, BinaryWriter dataOut ) : void
LooseMarshalCachedObject ( OpenWireFormat wireFormat, DataStructure o, BinaryWriter dataOut ) : void
LooseMarshalNestedObject ( OpenWireFormat wireFormat, DataStructure o, BinaryWriter dataOut ) : void
LooseMarshalObjectArray ( OpenWireFormat wireFormat, DataStructure objects, BinaryWriter dataOut ) : void
LooseUnmarshalBrokerError ( OpenWireFormat wireFormat, BinaryReader dataIn ) : Apache.NMS.ActiveMQ.Commands.BrokerError
LooseUnmarshalCachedObject ( OpenWireFormat wireFormat, BinaryReader dataIn ) : DataStructure
LooseUnmarshalNestedObject ( OpenWireFormat wireFormat, BinaryReader dataIn ) : DataStructure
LooseUnmarshalString ( BinaryReader dataIn ) : String
ReadAsciiString ( BinaryReader dataIn ) : String
ReadBytes ( BinaryReader dataIn ) : byte[]
ReadBytes ( BinaryReader dataIn, bool flag ) : byte[]
ReadBytes ( BinaryReader dataIn, int size ) : byte[]
TightMarshalBrokerError1 ( OpenWireFormat wireFormat, Apache.NMS.ActiveMQ.Commands.BrokerError o, BooleanStream bs ) : int
TightMarshalBrokerError2 ( OpenWireFormat wireFormat, Apache.NMS.ActiveMQ.Commands.BrokerError o, BinaryWriter dataOut, BooleanStream bs ) : void
TightMarshalCachedObject1 ( OpenWireFormat wireFormat, DataStructure o, BooleanStream bs ) : int
TightMarshalCachedObject2 ( OpenWireFormat wireFormat, DataStructure o, BinaryWriter dataOut, BooleanStream bs ) : void
TightMarshalNestedObject1 ( OpenWireFormat wireFormat, DataStructure o, BooleanStream bs ) : int
TightMarshalNestedObject2 ( OpenWireFormat wireFormat, DataStructure o, BinaryWriter dataOut, BooleanStream bs ) : void
TightMarshalObjectArray1 ( OpenWireFormat wireFormat, DataStructure objects, BooleanStream bs ) : int
TightMarshalObjectArray2 ( OpenWireFormat wireFormat, DataStructure objects, BinaryWriter dataOut, BooleanStream bs ) : void
TightMarshalString1 ( String value, BooleanStream bs ) : int
TightUnmarshalBrokerError ( OpenWireFormat wireFormat, BinaryReader dataIn, BooleanStream bs ) : Apache.NMS.ActiveMQ.Commands.BrokerError
TightUnmarshalCachedObject ( OpenWireFormat wireFormat, BinaryReader dataIn, BooleanStream bs ) : DataStructure
TightUnmarshalNestedObject ( OpenWireFormat wireFormat, BinaryReader dataIn, BooleanStream bs ) : DataStructure
TightUnmarshalString ( BinaryReader dataIn, BooleanStream bs ) : String
WriteBytes ( byte command, BinaryWriter dataOut ) : void

메소드 상세

CreateObject() 공개 추상적인 메소드

public abstract CreateObject ( ) : DataStructure
리턴 DataStructure

GetDataStructureType() 공개 추상적인 메소드

public abstract GetDataStructureType ( ) : byte
리턴 byte

LooseMarshal() 공개 메소드

public LooseMarshal ( OpenWireFormat wireFormat, Object o, BinaryWriter dataOut ) : void
wireFormat OpenWireFormat
o Object
dataOut System.IO.BinaryWriter
리턴 void

LooseMarshalBrokerError() 보호된 메소드

protected LooseMarshalBrokerError ( OpenWireFormat wireFormat, Apache.NMS.ActiveMQ.Commands.BrokerError o, BinaryWriter dataOut ) : void
wireFormat OpenWireFormat
o Apache.NMS.ActiveMQ.Commands.BrokerError
dataOut System.IO.BinaryWriter
리턴 void

LooseMarshalCachedObject() 보호된 메소드

protected LooseMarshalCachedObject ( OpenWireFormat wireFormat, DataStructure o, BinaryWriter dataOut ) : void
wireFormat OpenWireFormat
o DataStructure
dataOut System.IO.BinaryWriter
리턴 void

LooseMarshalLong() 공개 메소드

public LooseMarshalLong ( OpenWireFormat wireFormat, long o, BinaryWriter dataOut ) : void
wireFormat OpenWireFormat
o long
dataOut System.IO.BinaryWriter
리턴 void

LooseMarshalNestedObject() 보호된 메소드

protected LooseMarshalNestedObject ( OpenWireFormat wireFormat, DataStructure o, BinaryWriter dataOut ) : void
wireFormat OpenWireFormat
o DataStructure
dataOut System.IO.BinaryWriter
리턴 void

LooseMarshalObjectArray() 보호된 메소드

protected LooseMarshalObjectArray ( OpenWireFormat wireFormat, DataStructure objects, BinaryWriter dataOut ) : void
wireFormat OpenWireFormat
objects DataStructure
dataOut System.IO.BinaryWriter
리턴 void

LooseMarshalString() 공개 정적인 메소드

public static LooseMarshalString ( String value, BinaryWriter dataOut ) : void
value String
dataOut System.IO.BinaryWriter
리턴 void

LooseUnmarshal() 공개 메소드

public LooseUnmarshal ( OpenWireFormat wireFormat, Object o, BinaryReader dataIn ) : void
wireFormat OpenWireFormat
o Object
dataIn System.IO.BinaryReader
리턴 void

LooseUnmarshalBrokerError() 보호된 메소드

protected LooseUnmarshalBrokerError ( OpenWireFormat wireFormat, BinaryReader dataIn ) : Apache.NMS.ActiveMQ.Commands.BrokerError
wireFormat OpenWireFormat
dataIn System.IO.BinaryReader
리턴 Apache.NMS.ActiveMQ.Commands.BrokerError

LooseUnmarshalCachedObject() 보호된 메소드

protected LooseUnmarshalCachedObject ( OpenWireFormat wireFormat, BinaryReader dataIn ) : DataStructure
wireFormat OpenWireFormat
dataIn System.IO.BinaryReader
리턴 DataStructure

LooseUnmarshalLong() 공개 메소드

public LooseUnmarshalLong ( OpenWireFormat wireFormat, BinaryReader dataIn ) : long
wireFormat OpenWireFormat
dataIn System.IO.BinaryReader
리턴 long

LooseUnmarshalNestedObject() 보호된 메소드

protected LooseUnmarshalNestedObject ( OpenWireFormat wireFormat, BinaryReader dataIn ) : DataStructure
wireFormat OpenWireFormat
dataIn System.IO.BinaryReader
리턴 DataStructure

LooseUnmarshalString() 보호된 메소드

protected LooseUnmarshalString ( BinaryReader dataIn ) : String
dataIn System.IO.BinaryReader
리턴 String

ReadAsciiString() 보호된 메소드

protected ReadAsciiString ( BinaryReader dataIn ) : String
dataIn System.IO.BinaryReader
리턴 String

ReadBytes() 보호된 메소드

protected ReadBytes ( BinaryReader dataIn ) : byte[]
dataIn System.IO.BinaryReader
리턴 byte[]

ReadBytes() 보호된 메소드

protected ReadBytes ( BinaryReader dataIn, bool flag ) : byte[]
dataIn System.IO.BinaryReader
flag bool
리턴 byte[]

ReadBytes() 보호된 메소드

protected ReadBytes ( BinaryReader dataIn, int size ) : byte[]
dataIn System.IO.BinaryReader
size int
리턴 byte[]

TightMarshal1() 공개 메소드

public TightMarshal1 ( OpenWireFormat wireFormat, Object o, BooleanStream bs ) : int
wireFormat OpenWireFormat
o Object
bs BooleanStream
리턴 int

TightMarshal2() 공개 메소드

public TightMarshal2 ( OpenWireFormat wireFormat, Object o, BinaryWriter dataOut, BooleanStream bs ) : void
wireFormat OpenWireFormat
o Object
dataOut System.IO.BinaryWriter
bs BooleanStream
리턴 void

TightMarshalBrokerError1() 보호된 메소드

protected TightMarshalBrokerError1 ( OpenWireFormat wireFormat, Apache.NMS.ActiveMQ.Commands.BrokerError o, BooleanStream bs ) : int
wireFormat OpenWireFormat
o Apache.NMS.ActiveMQ.Commands.BrokerError
bs BooleanStream
리턴 int

TightMarshalBrokerError2() 보호된 메소드

protected TightMarshalBrokerError2 ( OpenWireFormat wireFormat, Apache.NMS.ActiveMQ.Commands.BrokerError o, BinaryWriter dataOut, BooleanStream bs ) : void
wireFormat OpenWireFormat
o Apache.NMS.ActiveMQ.Commands.BrokerError
dataOut System.IO.BinaryWriter
bs BooleanStream
리턴 void

TightMarshalCachedObject1() 보호된 메소드

protected TightMarshalCachedObject1 ( OpenWireFormat wireFormat, DataStructure o, BooleanStream bs ) : int
wireFormat OpenWireFormat
o DataStructure
bs BooleanStream
리턴 int

TightMarshalCachedObject2() 보호된 메소드

protected TightMarshalCachedObject2 ( OpenWireFormat wireFormat, DataStructure o, BinaryWriter dataOut, BooleanStream bs ) : void
wireFormat OpenWireFormat
o DataStructure
dataOut System.IO.BinaryWriter
bs BooleanStream
리턴 void

TightMarshalLong1() 공개 메소드

public TightMarshalLong1 ( OpenWireFormat wireFormat, long o, BooleanStream bs ) : int
wireFormat OpenWireFormat
o long
bs BooleanStream
리턴 int

TightMarshalLong2() 공개 메소드

public TightMarshalLong2 ( OpenWireFormat wireFormat, long o, BinaryWriter dataOut, BooleanStream bs ) : void
wireFormat OpenWireFormat
o long
dataOut System.IO.BinaryWriter
bs BooleanStream
리턴 void

TightMarshalNestedObject1() 보호된 메소드

protected TightMarshalNestedObject1 ( OpenWireFormat wireFormat, DataStructure o, BooleanStream bs ) : int
wireFormat OpenWireFormat
o DataStructure
bs BooleanStream
리턴 int

TightMarshalNestedObject2() 보호된 메소드

protected TightMarshalNestedObject2 ( OpenWireFormat wireFormat, DataStructure o, BinaryWriter dataOut, BooleanStream bs ) : void
wireFormat OpenWireFormat
o DataStructure
dataOut System.IO.BinaryWriter
bs BooleanStream
리턴 void

TightMarshalObjectArray1() 보호된 메소드

protected TightMarshalObjectArray1 ( OpenWireFormat wireFormat, DataStructure objects, BooleanStream bs ) : int
wireFormat OpenWireFormat
objects DataStructure
bs BooleanStream
리턴 int

TightMarshalObjectArray2() 보호된 메소드

protected TightMarshalObjectArray2 ( OpenWireFormat wireFormat, DataStructure objects, BinaryWriter dataOut, BooleanStream bs ) : void
wireFormat OpenWireFormat
objects DataStructure
dataOut System.IO.BinaryWriter
bs BooleanStream
리턴 void

TightMarshalString1() 보호된 메소드

protected TightMarshalString1 ( String value, BooleanStream bs ) : int
value String
bs BooleanStream
리턴 int

TightMarshalString2() 공개 정적인 메소드

public static TightMarshalString2 ( String value, BinaryWriter dataOut, BooleanStream bs ) : void
value String
dataOut System.IO.BinaryWriter
bs BooleanStream
리턴 void

TightUnmarshal() 공개 메소드

public TightUnmarshal ( OpenWireFormat wireFormat, Object o, BinaryReader dataIn, BooleanStream bs ) : void
wireFormat OpenWireFormat
o Object
dataIn System.IO.BinaryReader
bs BooleanStream
리턴 void

TightUnmarshalBrokerError() 보호된 메소드

protected TightUnmarshalBrokerError ( OpenWireFormat wireFormat, BinaryReader dataIn, BooleanStream bs ) : Apache.NMS.ActiveMQ.Commands.BrokerError
wireFormat OpenWireFormat
dataIn System.IO.BinaryReader
bs BooleanStream
리턴 Apache.NMS.ActiveMQ.Commands.BrokerError

TightUnmarshalCachedObject() 보호된 메소드

protected TightUnmarshalCachedObject ( OpenWireFormat wireFormat, BinaryReader dataIn, BooleanStream bs ) : DataStructure
wireFormat OpenWireFormat
dataIn System.IO.BinaryReader
bs BooleanStream
리턴 DataStructure

TightUnmarshalLong() 공개 메소드

public TightUnmarshalLong ( OpenWireFormat wireFormat, BinaryReader dataIn, BooleanStream bs ) : long
wireFormat OpenWireFormat
dataIn System.IO.BinaryReader
bs BooleanStream
리턴 long

TightUnmarshalNestedObject() 보호된 메소드

protected TightUnmarshalNestedObject ( OpenWireFormat wireFormat, BinaryReader dataIn, BooleanStream bs ) : DataStructure
wireFormat OpenWireFormat
dataIn System.IO.BinaryReader
bs BooleanStream
리턴 DataStructure

TightUnmarshalString() 보호된 메소드

protected TightUnmarshalString ( BinaryReader dataIn, BooleanStream bs ) : String
dataIn System.IO.BinaryReader
bs BooleanStream
리턴 String

ToHexFromBytes() 공개 정적인 메소드

Creates the byte array into hexidecimal
public static ToHexFromBytes ( byte data ) : String
data byte
리턴 String

ToString() 공개 정적인 메소드

Converts the given transaction ID into a String
public static ToString ( TransactionId txnId ) : String
txnId Apache.NMS.ActiveMQ.Commands.TransactionId
리턴 String

ToString() 공개 정적인 메소드

Converts the object to a String
public static ToString ( MessageId id ) : string
id Apache.NMS.ActiveMQ.Commands.MessageId
리턴 string

ToString() 공개 정적인 메소드

Converts the object to a String
public static ToString ( ProducerId id ) : string
id Apache.NMS.ActiveMQ.Commands.ProducerId
리턴 string

WriteBytes() 보호된 메소드

protected WriteBytes ( byte command, BinaryWriter dataOut ) : void
command byte
dataOut System.IO.BinaryWriter
리턴 void