org.apache.activemq.openwire.v1
Class BaseDataStreamMarshaller
java.lang.Object
org.apache.activemq.openwire.v1.BaseDataStreamMarshaller
- All Implemented Interfaces:
- DataStreamMarshaller
- Direct Known Subclasses:
- ActiveMQDestinationMarshaller, BaseCommandMarshaller, BrokerIdMarshaller, ConnectionIdMarshaller, ConsumerIdMarshaller, DataStructureSupportMarshaller, DiscoveryEventMarshaller, JournalQueueAckMarshaller, JournalTopicAckMarshaller, JournalTraceMarshaller, JournalTransactionMarshaller, MessageIdMarshaller, NetworkBridgeFilterMarshaller, PartialCommandMarshaller, ProducerIdMarshaller, SessionIdMarshaller, SubscriptionInfoMarshaller, TransactionIdMarshaller, WireFormatInfoMarshaller
public abstract class BaseDataStreamMarshaller
- extends java.lang.Object
- implements DataStreamMarshaller
Method Summary |
abstract DataStructure |
createObject()
|
abstract byte |
getDataStructureType()
|
void |
looseMarshal(OpenWireFormat wireFormat,
java.lang.Object o,
java.io.DataOutput dataOut)
|
protected void |
looseMarshalByteArray(OpenWireFormat wireFormat,
byte[] data,
java.io.DataOutput dataOut)
|
protected void |
looseMarshalByteSequence(OpenWireFormat wireFormat,
ByteSequence data,
java.io.DataOutput dataOut)
|
protected void |
looseMarshalCachedObject(OpenWireFormat wireFormat,
DataStructure o,
java.io.DataOutput dataOut)
|
protected void |
looseMarshalConstByteArray(OpenWireFormat wireFormat,
byte[] data,
java.io.DataOutput dataOut,
int i)
|
void |
looseMarshalLong(OpenWireFormat wireFormat,
long o,
java.io.DataOutput dataOut)
|
protected void |
looseMarshalNestedObject(OpenWireFormat wireFormat,
DataStructure o,
java.io.DataOutput dataOut)
|
protected void |
looseMarshalObjectArray(OpenWireFormat wireFormat,
DataStructure[] objects,
java.io.DataOutput dataOut)
|
protected void |
looseMarshalString(java.lang.String value,
java.io.DataOutput dataOut)
|
protected void |
looseMarshalThrowable(OpenWireFormat wireFormat,
java.lang.Throwable o,
java.io.DataOutput dataOut)
|
protected DataStructure |
looseUnmarsalCachedObject(OpenWireFormat wireFormat,
java.io.DataInput dataIn)
|
protected DataStructure |
looseUnmarsalNestedObject(OpenWireFormat wireFormat,
java.io.DataInput dataIn)
|
protected java.lang.Throwable |
looseUnmarsalThrowable(OpenWireFormat wireFormat,
java.io.DataInput dataIn)
|
void |
looseUnmarshal(OpenWireFormat wireFormat,
java.lang.Object o,
java.io.DataInput dataIn)
|
protected byte[] |
looseUnmarshalByteArray(java.io.DataInput dataIn)
|
protected ByteSequence |
looseUnmarshalByteSequence(java.io.DataInput dataIn)
|
protected byte[] |
looseUnmarshalConstByteArray(java.io.DataInput dataIn,
int i)
|
long |
looseUnmarshalLong(OpenWireFormat wireFormat,
java.io.DataInput dataIn)
|
protected java.lang.String |
looseUnmarshalString(java.io.DataInput dataIn)
|
int |
tightMarshal1(OpenWireFormat wireFormat,
java.lang.Object o,
BooleanStream bs)
|
void |
tightMarshal2(OpenWireFormat wireFormat,
java.lang.Object o,
java.io.DataOutput dataOut,
BooleanStream bs)
|
protected int |
tightMarshalByteArray1(byte[] data,
BooleanStream bs)
|
protected void |
tightMarshalByteArray2(byte[] data,
java.io.DataOutput dataOut,
BooleanStream bs)
|
protected int |
tightMarshalByteSequence1(ByteSequence data,
BooleanStream bs)
|
protected void |
tightMarshalByteSequence2(ByteSequence data,
java.io.DataOutput dataOut,
BooleanStream bs)
|
protected int |
tightMarshalCachedObject1(OpenWireFormat wireFormat,
DataStructure o,
BooleanStream bs)
|
protected void |
tightMarshalCachedObject2(OpenWireFormat wireFormat,
DataStructure o,
java.io.DataOutput dataOut,
BooleanStream bs)
|
protected int |
tightMarshalConstByteArray1(byte[] data,
BooleanStream bs,
int i)
|
protected void |
tightMarshalConstByteArray2(byte[] data,
java.io.DataOutput dataOut,
BooleanStream bs,
int i)
|
int |
tightMarshalLong1(OpenWireFormat wireFormat,
long o,
BooleanStream bs)
|
void |
tightMarshalLong2(OpenWireFormat wireFormat,
long o,
java.io.DataOutput dataOut,
BooleanStream bs)
|
protected int |
tightMarshalNestedObject1(OpenWireFormat wireFormat,
DataStructure o,
BooleanStream bs)
|
protected void |
tightMarshalNestedObject2(OpenWireFormat wireFormat,
DataStructure o,
java.io.DataOutput dataOut,
BooleanStream bs)
|
protected int |
tightMarshalObjectArray1(OpenWireFormat wireFormat,
DataStructure[] objects,
BooleanStream bs)
|
protected void |
tightMarshalObjectArray2(OpenWireFormat wireFormat,
DataStructure[] objects,
java.io.DataOutput dataOut,
BooleanStream bs)
|
protected int |
tightMarshalString1(java.lang.String value,
BooleanStream bs)
|
protected void |
tightMarshalString2(java.lang.String value,
java.io.DataOutput dataOut,
BooleanStream bs)
|
protected int |
tightMarshalThrowable1(OpenWireFormat wireFormat,
java.lang.Throwable o,
BooleanStream bs)
|
protected void |
tightMarshalThrowable2(OpenWireFormat wireFormat,
java.lang.Throwable o,
java.io.DataOutput dataOut,
BooleanStream bs)
|
protected DataStructure |
tightUnmarsalCachedObject(OpenWireFormat wireFormat,
java.io.DataInput dataIn,
BooleanStream bs)
|
protected DataStructure |
tightUnmarsalNestedObject(OpenWireFormat wireFormat,
java.io.DataInput dataIn,
BooleanStream bs)
|
protected java.lang.Throwable |
tightUnmarsalThrowable(OpenWireFormat wireFormat,
java.io.DataInput dataIn,
BooleanStream bs)
|
void |
tightUnmarshal(OpenWireFormat wireFormat,
java.lang.Object o,
java.io.DataInput dataIn,
BooleanStream bs)
|
protected byte[] |
tightUnmarshalByteArray(java.io.DataInput dataIn,
BooleanStream bs)
|
protected ByteSequence |
tightUnmarshalByteSequence(java.io.DataInput dataIn,
BooleanStream bs)
|
protected byte[] |
tightUnmarshalConstByteArray(java.io.DataInput dataIn,
BooleanStream bs,
int i)
|
long |
tightUnmarshalLong(OpenWireFormat wireFormat,
java.io.DataInput dataIn,
BooleanStream bs)
|
protected java.lang.String |
tightUnmarshalString(java.io.DataInput dataIn,
BooleanStream bs)
|
protected long |
toLong(int value)
|
protected long |
toLong(short value)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
STACK_TRACE_ELEMENT_CONSTRUCTOR
public static final java.lang.reflect.Constructor STACK_TRACE_ELEMENT_CONSTRUCTOR
BaseDataStreamMarshaller
public BaseDataStreamMarshaller()
getDataStructureType
public abstract byte getDataStructureType()
- Specified by:
getDataStructureType
in interface DataStreamMarshaller
createObject
public abstract DataStructure createObject()
- Specified by:
createObject
in interface DataStreamMarshaller
tightMarshal1
public int tightMarshal1(OpenWireFormat wireFormat,
java.lang.Object o,
BooleanStream bs)
throws java.io.IOException
- Specified by:
tightMarshal1
in interface DataStreamMarshaller
- Throws:
java.io.IOException
tightMarshal2
public void tightMarshal2(OpenWireFormat wireFormat,
java.lang.Object o,
java.io.DataOutput dataOut,
BooleanStream bs)
throws java.io.IOException
- Specified by:
tightMarshal2
in interface DataStreamMarshaller
- Throws:
java.io.IOException
tightUnmarshal
public void tightUnmarshal(OpenWireFormat wireFormat,
java.lang.Object o,
java.io.DataInput dataIn,
BooleanStream bs)
throws java.io.IOException
- Specified by:
tightUnmarshal
in interface DataStreamMarshaller
- Throws:
java.io.IOException
tightMarshalLong1
public int tightMarshalLong1(OpenWireFormat wireFormat,
long o,
BooleanStream bs)
throws java.io.IOException
- Throws:
java.io.IOException
tightMarshalLong2
public void tightMarshalLong2(OpenWireFormat wireFormat,
long o,
java.io.DataOutput dataOut,
BooleanStream bs)
throws java.io.IOException
- Throws:
java.io.IOException
tightUnmarshalLong
public long tightUnmarshalLong(OpenWireFormat wireFormat,
java.io.DataInput dataIn,
BooleanStream bs)
throws java.io.IOException
- Throws:
java.io.IOException
toLong
protected long toLong(short value)
toLong
protected long toLong(int value)
tightUnmarsalNestedObject
protected DataStructure tightUnmarsalNestedObject(OpenWireFormat wireFormat,
java.io.DataInput dataIn,
BooleanStream bs)
throws java.io.IOException
- Throws:
java.io.IOException
tightMarshalNestedObject1
protected int tightMarshalNestedObject1(OpenWireFormat wireFormat,
DataStructure o,
BooleanStream bs)
throws java.io.IOException
- Throws:
java.io.IOException
tightMarshalNestedObject2
protected void tightMarshalNestedObject2(OpenWireFormat wireFormat,
DataStructure o,
java.io.DataOutput dataOut,
BooleanStream bs)
throws java.io.IOException
- Throws:
java.io.IOException
tightUnmarsalCachedObject
protected DataStructure tightUnmarsalCachedObject(OpenWireFormat wireFormat,
java.io.DataInput dataIn,
BooleanStream bs)
throws java.io.IOException
- Throws:
java.io.IOException
tightMarshalCachedObject1
protected int tightMarshalCachedObject1(OpenWireFormat wireFormat,
DataStructure o,
BooleanStream bs)
throws java.io.IOException
- Throws:
java.io.IOException
tightMarshalCachedObject2
protected void tightMarshalCachedObject2(OpenWireFormat wireFormat,
DataStructure o,
java.io.DataOutput dataOut,
BooleanStream bs)
throws java.io.IOException
- Throws:
java.io.IOException
tightUnmarsalThrowable
protected java.lang.Throwable tightUnmarsalThrowable(OpenWireFormat wireFormat,
java.io.DataInput dataIn,
BooleanStream bs)
throws java.io.IOException
- Throws:
java.io.IOException
tightMarshalThrowable1
protected int tightMarshalThrowable1(OpenWireFormat wireFormat,
java.lang.Throwable o,
BooleanStream bs)
throws java.io.IOException
- Throws:
java.io.IOException
tightMarshalThrowable2
protected void tightMarshalThrowable2(OpenWireFormat wireFormat,
java.lang.Throwable o,
java.io.DataOutput dataOut,
BooleanStream bs)
throws java.io.IOException
- Throws:
java.io.IOException
tightUnmarshalString
protected java.lang.String tightUnmarshalString(java.io.DataInput dataIn,
BooleanStream bs)
throws java.io.IOException
- Throws:
java.io.IOException
tightMarshalString1
protected int tightMarshalString1(java.lang.String value,
BooleanStream bs)
throws java.io.IOException
- Throws:
java.io.IOException
tightMarshalString2
protected void tightMarshalString2(java.lang.String value,
java.io.DataOutput dataOut,
BooleanStream bs)
throws java.io.IOException
- Throws:
java.io.IOException
tightMarshalObjectArray1
protected int tightMarshalObjectArray1(OpenWireFormat wireFormat,
DataStructure[] objects,
BooleanStream bs)
throws java.io.IOException
- Throws:
java.io.IOException
tightMarshalObjectArray2
protected void tightMarshalObjectArray2(OpenWireFormat wireFormat,
DataStructure[] objects,
java.io.DataOutput dataOut,
BooleanStream bs)
throws java.io.IOException
- Throws:
java.io.IOException
tightMarshalConstByteArray1
protected int tightMarshalConstByteArray1(byte[] data,
BooleanStream bs,
int i)
throws java.io.IOException
- Throws:
java.io.IOException
tightMarshalConstByteArray2
protected void tightMarshalConstByteArray2(byte[] data,
java.io.DataOutput dataOut,
BooleanStream bs,
int i)
throws java.io.IOException
- Throws:
java.io.IOException
tightUnmarshalConstByteArray
protected byte[] tightUnmarshalConstByteArray(java.io.DataInput dataIn,
BooleanStream bs,
int i)
throws java.io.IOException
- Throws:
java.io.IOException
tightMarshalByteArray1
protected int tightMarshalByteArray1(byte[] data,
BooleanStream bs)
throws java.io.IOException
- Throws:
java.io.IOException
tightMarshalByteArray2
protected void tightMarshalByteArray2(byte[] data,
java.io.DataOutput dataOut,
BooleanStream bs)
throws java.io.IOException
- Throws:
java.io.IOException
tightUnmarshalByteArray
protected byte[] tightUnmarshalByteArray(java.io.DataInput dataIn,
BooleanStream bs)
throws java.io.IOException
- Throws:
java.io.IOException
tightMarshalByteSequence1
protected int tightMarshalByteSequence1(ByteSequence data,
BooleanStream bs)
throws java.io.IOException
- Throws:
java.io.IOException
tightMarshalByteSequence2
protected void tightMarshalByteSequence2(ByteSequence data,
java.io.DataOutput dataOut,
BooleanStream bs)
throws java.io.IOException
- Throws:
java.io.IOException
tightUnmarshalByteSequence
protected ByteSequence tightUnmarshalByteSequence(java.io.DataInput dataIn,
BooleanStream bs)
throws java.io.IOException
- Throws:
java.io.IOException
looseMarshal
public void looseMarshal(OpenWireFormat wireFormat,
java.lang.Object o,
java.io.DataOutput dataOut)
throws java.io.IOException
- Specified by:
looseMarshal
in interface DataStreamMarshaller
- Throws:
java.io.IOException
looseUnmarshal
public void looseUnmarshal(OpenWireFormat wireFormat,
java.lang.Object o,
java.io.DataInput dataIn)
throws java.io.IOException
- Specified by:
looseUnmarshal
in interface DataStreamMarshaller
- Throws:
java.io.IOException
looseMarshalLong
public void looseMarshalLong(OpenWireFormat wireFormat,
long o,
java.io.DataOutput dataOut)
throws java.io.IOException
- Throws:
java.io.IOException
looseUnmarshalLong
public long looseUnmarshalLong(OpenWireFormat wireFormat,
java.io.DataInput dataIn)
throws java.io.IOException
- Throws:
java.io.IOException
looseUnmarsalNestedObject
protected DataStructure looseUnmarsalNestedObject(OpenWireFormat wireFormat,
java.io.DataInput dataIn)
throws java.io.IOException
- Throws:
java.io.IOException
looseMarshalNestedObject
protected void looseMarshalNestedObject(OpenWireFormat wireFormat,
DataStructure o,
java.io.DataOutput dataOut)
throws java.io.IOException
- Throws:
java.io.IOException
looseUnmarsalCachedObject
protected DataStructure looseUnmarsalCachedObject(OpenWireFormat wireFormat,
java.io.DataInput dataIn)
throws java.io.IOException
- Throws:
java.io.IOException
looseMarshalCachedObject
protected void looseMarshalCachedObject(OpenWireFormat wireFormat,
DataStructure o,
java.io.DataOutput dataOut)
throws java.io.IOException
- Throws:
java.io.IOException
looseUnmarsalThrowable
protected java.lang.Throwable looseUnmarsalThrowable(OpenWireFormat wireFormat,
java.io.DataInput dataIn)
throws java.io.IOException
- Throws:
java.io.IOException
looseMarshalThrowable
protected void looseMarshalThrowable(OpenWireFormat wireFormat,
java.lang.Throwable o,
java.io.DataOutput dataOut)
throws java.io.IOException
- Throws:
java.io.IOException
looseUnmarshalString
protected java.lang.String looseUnmarshalString(java.io.DataInput dataIn)
throws java.io.IOException
- Throws:
java.io.IOException
looseMarshalString
protected void looseMarshalString(java.lang.String value,
java.io.DataOutput dataOut)
throws java.io.IOException
- Throws:
java.io.IOException
looseMarshalObjectArray
protected void looseMarshalObjectArray(OpenWireFormat wireFormat,
DataStructure[] objects,
java.io.DataOutput dataOut)
throws java.io.IOException
- Throws:
java.io.IOException
looseMarshalConstByteArray
protected void looseMarshalConstByteArray(OpenWireFormat wireFormat,
byte[] data,
java.io.DataOutput dataOut,
int i)
throws java.io.IOException
- Throws:
java.io.IOException
looseUnmarshalConstByteArray
protected byte[] looseUnmarshalConstByteArray(java.io.DataInput dataIn,
int i)
throws java.io.IOException
- Throws:
java.io.IOException
looseMarshalByteArray
protected void looseMarshalByteArray(OpenWireFormat wireFormat,
byte[] data,
java.io.DataOutput dataOut)
throws java.io.IOException
- Throws:
java.io.IOException
looseUnmarshalByteArray
protected byte[] looseUnmarshalByteArray(java.io.DataInput dataIn)
throws java.io.IOException
- Throws:
java.io.IOException
looseMarshalByteSequence
protected void looseMarshalByteSequence(OpenWireFormat wireFormat,
ByteSequence data,
java.io.DataOutput dataOut)
throws java.io.IOException
- Throws:
java.io.IOException
looseUnmarshalByteSequence
protected ByteSequence looseUnmarshalByteSequence(java.io.DataInput dataIn)
throws java.io.IOException
- Throws:
java.io.IOException
Copyright © 2005-2015. All Rights Reserved.