org.activemq.io
Class TextWireFormat

java.lang.Object
  extended by org.activemq.io.AbstractWireFormat
      extended by org.activemq.io.TextWireFormat
All Implemented Interfaces:
WireFormat

public abstract class TextWireFormat
extends AbstractWireFormat

Represents a text based WireFormat such as one that uses XML packets like the org.activemq.transport.xstream.XStreamWireFormat or the JabberWireFormat

Version:
$Revision: 1.1.1.1 $

Field Summary
 
Fields inherited from class org.activemq.io.AbstractWireFormat
cachingEnabled, transportDataIn, transportDataOut
 
Fields inherited from interface org.activemq.io.WireFormat
DEFAULT_MAXIMUM_MESSAGE_SIZE
 
Constructor Summary
TextWireFormat()
           
 
Method Summary
abstract  Packet fromString(String text)
          Converts the String into a Packet
abstract  String toString(Packet packet)
          Converts the packet into a String
 
Methods inherited from class org.activemq.io.AbstractWireFormat
doesSupportMessageCompression, doesSupportMessageFragmentation, fromBytes, fromBytes, getTransportDataIn, getTransportDataOut, initiateClientSideProtocol, initiateServerSideProtocol, isCachingEnabled, readPacket, readPacket, registerTransportStreams, setCachingEnabled, setTransportDataIn, setTransportDataOut, toBytes, writePacket
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.activemq.io.WireFormat
canProcessWireFormatVersion, copy, getCurrentWireFormatVersion, readPacket, writePacket
 

Constructor Detail

TextWireFormat

public TextWireFormat()
Method Detail

toString

public abstract String toString(Packet packet)
                         throws JMSException
Converts the packet into a String

Throws:
JMSException

fromString

public abstract Packet fromString(String text)
                           throws JMSException
Converts the String into a Packet

Throws:
JMSException


Copyright © 2004-2009 Protique, Ltd.. All Rights Reserved.