C# Class Apache.NMS.ActiveMQ.OpenWire.BaseDataStreamMarshaller

A base class with useful implementation inheritence methods for creating marshallers of the OpenWire protocol
Datei anzeigen Open project: ThorTech/apache-nms Class Usage Examples

Public Methods

Method Description
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

Protected Methods

Method Description
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

Method Details

CreateObject() public abstract method

public abstract CreateObject ( ) : DataStructure
return DataStructure

GetDataStructureType() public abstract method

public abstract GetDataStructureType ( ) : byte
return byte

LooseMarshal() public method

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

LooseMarshalBrokerError() protected method

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
return void

LooseMarshalCachedObject() protected method

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

LooseMarshalLong() public method

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

LooseMarshalNestedObject() protected method

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

LooseMarshalObjectArray() protected method

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

LooseMarshalString() public static method

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

LooseUnmarshal() public method

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

LooseUnmarshalBrokerError() protected method

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

LooseUnmarshalCachedObject() protected method

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

LooseUnmarshalLong() public method

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

LooseUnmarshalNestedObject() protected method

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

LooseUnmarshalString() protected method

protected LooseUnmarshalString ( BinaryReader dataIn ) : String
dataIn System.IO.BinaryReader
return String

ReadAsciiString() protected method

protected ReadAsciiString ( BinaryReader dataIn ) : String
dataIn System.IO.BinaryReader
return String

ReadBytes() protected method

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

ReadBytes() protected method

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

ReadBytes() protected method

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

TightMarshal1() public method

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

TightMarshal2() public method

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

TightMarshalBrokerError1() protected method

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

TightMarshalBrokerError2() protected method

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
return void

TightMarshalCachedObject1() protected method

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

TightMarshalCachedObject2() protected method

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

TightMarshalLong1() public method

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

TightMarshalLong2() public method

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

TightMarshalNestedObject1() protected method

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

TightMarshalNestedObject2() protected method

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

TightMarshalObjectArray1() protected method

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

TightMarshalObjectArray2() protected method

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

TightMarshalString1() protected method

protected TightMarshalString1 ( String value, BooleanStream bs ) : int
value String
bs BooleanStream
return int

TightMarshalString2() public static method

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

TightUnmarshal() public method

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

TightUnmarshalBrokerError() protected method

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

TightUnmarshalCachedObject() protected method

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

TightUnmarshalLong() public method

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

TightUnmarshalNestedObject() protected method

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

TightUnmarshalString() protected method

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

ToHexFromBytes() public static method

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

ToString() public static method

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

ToString() public static method

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

ToString() public static method

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

WriteBytes() protected method

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