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 java.lang.Object
implements WireFormat

Adds the extra methods available to text based wire format implementations


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

unmarshalText

public abstract java.lang.Object unmarshalText(java.io.Reader reader)

marshalText

public abstract java.lang.String marshalText(java.lang.Object command)

marshal

public void marshal(java.lang.Object command,
                    java.io.DataOutput out)
             throws java.io.IOException
Description copied from interface: WireFormat
Stream based marshaling

Specified by:
marshal in interface WireFormat
Throws:
java.io.IOException

unmarshal

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

Specified by:
unmarshal in interface WireFormat
Throws:
java.io.IOException

marshal

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

Specified by:
marshal in interface WireFormat
Throws:
java.io.IOException

unmarshal

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

Specified by:
unmarshal in interface WireFormat
Throws:
java.io.IOException

inReceive

public boolean inReceive()


Copyright © 2005-2011 FuseSource, Corp.. All Rights Reserved.