Class TextWireFormat
- java.lang.Object
-
- org.apache.activemq.transport.util.TextWireFormat
-
- All Implemented Interfaces:
WireFormat
- Direct Known Subclasses:
XStreamWireFormat
public abstract class TextWireFormat extends Object implements WireFormat
Adds the extra methods available to text based wire format implementations
-
-
Constructor Summary
Constructors Constructor Description TextWireFormat()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description boolean
inReceive()
ByteSequence
marshal(Object command)
Packet based marshalingvoid
marshal(Object command, DataOutput out)
Stream based marshalingabstract String
marshalText(Object command)
Object
unmarshal(DataInput in)
Packet based un-marshalingObject
unmarshal(ByteSequence packet)
Packet based un-marshalingabstract Object
unmarshalText(Reader reader)
abstract Object
unmarshalText(String text)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.activemq.wireformat.WireFormat
getVersion, setVersion
-
-
-
-
Method Detail
-
unmarshalText
public abstract Object unmarshalText(String text) throws IOException
- Throws:
IOException
-
unmarshalText
public abstract Object unmarshalText(Reader reader) throws IOException
- Throws:
IOException
-
marshalText
public abstract String marshalText(Object command) throws IOException
- Throws:
IOException
-
marshal
public void marshal(Object command, DataOutput out) throws IOException
Description copied from interface:WireFormat
Stream based marshaling- Specified by:
marshal
in interfaceWireFormat
- Throws:
IOException
-
unmarshal
public Object unmarshal(DataInput in) throws IOException
Description copied from interface:WireFormat
Packet based un-marshaling- Specified by:
unmarshal
in interfaceWireFormat
- Throws:
IOException
-
marshal
public ByteSequence marshal(Object command) throws IOException
Description copied from interface:WireFormat
Packet based marshaling- Specified by:
marshal
in interfaceWireFormat
- Throws:
IOException
-
unmarshal
public Object unmarshal(ByteSequence packet) throws IOException
Description copied from interface:WireFormat
Packet based un-marshaling- Specified by:
unmarshal
in interfaceWireFormat
- Throws:
IOException
-
inReceive
public boolean inReceive()
-
-