Class TextWireFormat
- java.lang.Object
-
- org.apache.activemq.transport.util.TextWireFormat
-
- All Implemented Interfaces:
org.apache.activemq.wireformat.WireFormat
- Direct Known Subclasses:
XStreamWireFormat
public abstract class TextWireFormat extends Object implements org.apache.activemq.wireformat.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)voidmarshal(Object command, DataOutput out)abstract StringmarshalText(Object command)Objectunmarshal(DataInput in)Objectunmarshal(ByteSequence packet)abstract ObjectunmarshalText(Reader reader)abstract ObjectunmarshalText(String text)
-
-
-
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
- Specified by:
marshalin interfaceorg.apache.activemq.wireformat.WireFormat- Throws:
IOException
-
unmarshal
public Object unmarshal(DataInput in) throws IOException
- Specified by:
unmarshalin interfaceorg.apache.activemq.wireformat.WireFormat- Throws:
IOException
-
marshal
public ByteSequence marshal(Object command) throws IOException
- Specified by:
marshalin interfaceorg.apache.activemq.wireformat.WireFormat- Throws:
IOException
-
unmarshal
public Object unmarshal(ByteSequence packet) throws IOException
- Specified by:
unmarshalin interfaceorg.apache.activemq.wireformat.WireFormat- Throws:
IOException
-
inReceive
public boolean inReceive()
-
-