org.apache.activemq.transport.util
Class TextWireFormat

java.lang.Object
  extended by 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
TextWireFormat()
           
 
Method Summary
 boolean inReceive()
           
 ByteSequence marshal(Object command)
          Packet based marshaling
 void marshal(Object command, DataOutput out)
          Stream based marshaling
abstract  String marshalText(Object command)
           
 Object unmarshal(ByteSequence packet)
          Packet based un-marshaling
 Object unmarshal(DataInput in)
          Packet based un-marshaling
abstract  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
 

Constructor Detail

TextWireFormat

public TextWireFormat()
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 interface WireFormat
Throws:
IOException

unmarshal

public Object unmarshal(DataInput in)
                 throws IOException
Description copied from interface: WireFormat
Packet based un-marshaling

Specified by:
unmarshal in interface WireFormat
Throws:
IOException

marshal

public ByteSequence marshal(Object command)
                     throws IOException
Description copied from interface: WireFormat
Packet based marshaling

Specified by:
marshal in interface WireFormat
Throws:
IOException

unmarshal

public Object unmarshal(ByteSequence packet)
                 throws IOException
Description copied from interface: WireFormat
Packet based un-marshaling

Specified by:
unmarshal in interface WireFormat
Throws:
IOException

inReceive

public boolean inReceive()


Copyright © 2005–2013 The Apache Software Foundation. All rights reserved.