org.codehaus.activemq.io
Class TextWireFormat

java.lang.Object
  extended byorg.codehaus.activemq.io.AbstractWireFormat
      extended byorg.codehaus.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.codehaus.activemq.transport.xstream.XStreamWireFormat or the org.codehaus.activemq.transport.jabber.JabberWireFormat

Version:
$Revision: 1.1 $

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.codehaus.activemq.io.AbstractWireFormat
fromBytes, fromBytes, initiateProtocol, readPacket, 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.codehaus.activemq.io.WireFormat
canProcessWireFormatVersion, copy, getCurrentWireFormatVersion, readPacket, 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-2005 Protique, Ltd.. All Rights Reserved.