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

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

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode 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 méthode

public abstract CreateObject ( ) : DataStructure
Résultat DataStructure

GetDataStructureType() public abstract méthode

public abstract GetDataStructureType ( ) : byte
Résultat byte

LooseMarshal() public méthode

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

LooseMarshalBrokerError() protected méthode

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
Résultat void

LooseMarshalCachedObject() protected méthode

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

LooseMarshalLong() public méthode

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

LooseMarshalNestedObject() protected méthode

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

LooseMarshalObjectArray() protected méthode

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

LooseMarshalString() public static méthode

public static LooseMarshalString ( String value, BinaryWriter dataOut ) : void
value String
dataOut System.IO.BinaryWriter
Résultat void

LooseUnmarshal() public méthode

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

LooseUnmarshalBrokerError() protected méthode

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

LooseUnmarshalCachedObject() protected méthode

protected LooseUnmarshalCachedObject ( OpenWireFormat wireFormat, BinaryReader dataIn ) : DataStructure
wireFormat OpenWireFormat
dataIn System.IO.BinaryReader
Résultat DataStructure

LooseUnmarshalLong() public méthode

public LooseUnmarshalLong ( OpenWireFormat wireFormat, BinaryReader dataIn ) : long
wireFormat OpenWireFormat
dataIn System.IO.BinaryReader
Résultat long

LooseUnmarshalNestedObject() protected méthode

protected LooseUnmarshalNestedObject ( OpenWireFormat wireFormat, BinaryReader dataIn ) : DataStructure
wireFormat OpenWireFormat
dataIn System.IO.BinaryReader
Résultat DataStructure

LooseUnmarshalString() protected méthode

protected LooseUnmarshalString ( BinaryReader dataIn ) : String
dataIn System.IO.BinaryReader
Résultat String

ReadAsciiString() protected méthode

protected ReadAsciiString ( BinaryReader dataIn ) : String
dataIn System.IO.BinaryReader
Résultat String

ReadBytes() protected méthode

protected ReadBytes ( BinaryReader dataIn ) : byte[]
dataIn System.IO.BinaryReader
Résultat byte[]

ReadBytes() protected méthode

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

ReadBytes() protected méthode

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

TightMarshal1() public méthode

public TightMarshal1 ( OpenWireFormat wireFormat, Object o, BooleanStream bs ) : int
wireFormat OpenWireFormat
o Object
bs BooleanStream
Résultat int

TightMarshal2() public méthode

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

TightMarshalBrokerError1() protected méthode

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

TightMarshalBrokerError2() protected méthode

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
Résultat void

TightMarshalCachedObject1() protected méthode

protected TightMarshalCachedObject1 ( OpenWireFormat wireFormat, DataStructure o, BooleanStream bs ) : int
wireFormat OpenWireFormat
o DataStructure
bs BooleanStream
Résultat int

TightMarshalCachedObject2() protected méthode

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

TightMarshalLong1() public méthode

public TightMarshalLong1 ( OpenWireFormat wireFormat, long o, BooleanStream bs ) : int
wireFormat OpenWireFormat
o long
bs BooleanStream
Résultat int

TightMarshalLong2() public méthode

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

TightMarshalNestedObject1() protected méthode

protected TightMarshalNestedObject1 ( OpenWireFormat wireFormat, DataStructure o, BooleanStream bs ) : int
wireFormat OpenWireFormat
o DataStructure
bs BooleanStream
Résultat int

TightMarshalNestedObject2() protected méthode

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

TightMarshalObjectArray1() protected méthode

protected TightMarshalObjectArray1 ( OpenWireFormat wireFormat, DataStructure objects, BooleanStream bs ) : int
wireFormat OpenWireFormat
objects DataStructure
bs BooleanStream
Résultat int

TightMarshalObjectArray2() protected méthode

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

TightMarshalString1() protected méthode

protected TightMarshalString1 ( String value, BooleanStream bs ) : int
value String
bs BooleanStream
Résultat int

TightMarshalString2() public static méthode

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

TightUnmarshal() public méthode

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

TightUnmarshalBrokerError() protected méthode

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

TightUnmarshalCachedObject() protected méthode

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

TightUnmarshalLong() public méthode

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

TightUnmarshalNestedObject() protected méthode

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

TightUnmarshalString() protected méthode

protected TightUnmarshalString ( BinaryReader dataIn, BooleanStream bs ) : String
dataIn System.IO.BinaryReader
bs BooleanStream
Résultat String

ToHexFromBytes() public static méthode

Creates the byte array into hexidecimal
public static ToHexFromBytes ( byte data ) : String
data byte
Résultat String

ToString() public static méthode

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

ToString() public static méthode

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

ToString() public static méthode

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

WriteBytes() protected méthode

protected WriteBytes ( byte command, BinaryWriter dataOut ) : void
command byte
dataOut System.IO.BinaryWriter
Résultat void