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