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 booleaninReceive()ByteSequencemarshal(Object command)Packet based marshalingvoidmarshal(Object command, DataOutput out)Stream based marshalingabstract StringmarshalText(Object command)Objectunmarshal(DataInput in)Packet based un-marshalingObjectunmarshal(ByteSequence packet)Packet based un-marshalingabstract ObjectunmarshalText(Reader reader)abstract ObjectunmarshalText(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:WireFormatStream based marshaling- Specified by:
marshalin interfaceWireFormat- Throws:
IOException
-
unmarshal
public Object unmarshal(DataInput in) throws IOException
Description copied from interface:WireFormatPacket based un-marshaling- Specified by:
unmarshalin interfaceWireFormat- Throws:
IOException
-
marshal
public ByteSequence marshal(Object command) throws IOException
Description copied from interface:WireFormatPacket based marshaling- Specified by:
marshalin interfaceWireFormat- Throws:
IOException
-
unmarshal
public Object unmarshal(ByteSequence packet) throws IOException
Description copied from interface:WireFormatPacket based un-marshaling- Specified by:
unmarshalin interfaceWireFormat- Throws:
IOException
-
inReceive
public boolean inReceive()
-
-