org.apache.activemq.transport.util
Class TextWireFormat

java.lang.Object
  extended by 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
TextWireFormat()
           
 
Method Summary
 boolean inReceive()
           
 org.apache.activemq.util.ByteSequence marshal(Object command)
           
 void marshal(Object command, DataOutput out)
           
abstract  String marshalText(Object command)
           
 Object unmarshal(org.apache.activemq.util.ByteSequence packet)
           
 Object unmarshal(DataInput in)
           
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
Specified by:
marshal in interface org.apache.activemq.wireformat.WireFormat
Throws:
IOException

unmarshal

public Object unmarshal(DataInput in)
                 throws IOException
Specified by:
unmarshal in interface org.apache.activemq.wireformat.WireFormat
Throws:
IOException

marshal

public org.apache.activemq.util.ByteSequence marshal(Object command)
                                              throws IOException
Specified by:
marshal in interface org.apache.activemq.wireformat.WireFormat
Throws:
IOException

unmarshal

public Object unmarshal(org.apache.activemq.util.ByteSequence packet)
                 throws IOException
Specified by:
unmarshal in interface org.apache.activemq.wireformat.WireFormat
Throws:
IOException

inReceive

public boolean inReceive()


Copyright © 2005-2012 The Apache Software Foundation. All Rights Reserved.