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)
           
 void marshal(java.lang.Object command, java.io.DataOutput out)
           
abstract  java.lang.String marshalText(java.lang.Object command)
           
 java.lang.Object unmarshal(ByteSequence packet)
           
 java.lang.Object unmarshal(java.io.DataInput in)
           
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)
                                        throws java.io.IOException
Throws:
java.io.IOException

unmarshalText

public abstract java.lang.Object unmarshalText(java.io.Reader reader)
                                        throws java.io.IOException
Throws:
java.io.IOException

marshalText

public abstract java.lang.String marshalText(java.lang.Object command)
                                      throws java.io.IOException
Throws:
java.io.IOException

marshal

public void marshal(java.lang.Object command,
                    java.io.DataOutput out)
             throws java.io.IOException
Specified by:
marshal in interface WireFormat
Throws:
java.io.IOException

unmarshal

public java.lang.Object unmarshal(java.io.DataInput in)
                           throws java.io.IOException
Specified by:
unmarshal in interface WireFormat
Throws:
java.io.IOException

marshal

public ByteSequence marshal(java.lang.Object command)
                     throws java.io.IOException
Specified by:
marshal in interface WireFormat
Throws:
java.io.IOException

unmarshal

public java.lang.Object unmarshal(ByteSequence packet)
                           throws java.io.IOException
Specified by:
unmarshal in interface WireFormat
Throws:
java.io.IOException

inReceive

public boolean inReceive()


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