|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.activemq.io.WireFormatLoader
public class WireFormatLoader
Represents a strategy of encoding packets on the wire or on disk using some kind of serialization or wire format.
We use a default efficient format for Java to Java communication but other formats to other systems can be used, such as using simple text strings when talking to JavaScript or coming up with other formats for talking to C / C# languages or proprietary messaging systems we wish to interface with at the wire level etc.
Constructor Summary | |
---|---|
WireFormatLoader()
Default Constructor |
|
WireFormatLoader(WireFormat prefered)
Construct WireFormatLoader with the prefered WireFormat |
Method Summary | |
---|---|
protected static JMSException |
createJMSexception(String protocol,
Exception e)
|
WireFormat |
getPreferedWireFormat()
|
WireFormat |
getWireFormat(DataInputStream dataIn)
Create a wire format |
static WireFormat |
getWireFormat(String format)
load a WireFormat by name - e.g. |
void |
setPreferedWireFormat(WireFormat preferedWireFormat)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WireFormatLoader()
public WireFormatLoader(WireFormat prefered)
prefered
- Method Detail |
---|
public WireFormat getWireFormat(DataInputStream dataIn) throws JMSException, IOException
dataIn
-
JMSException
IOException
public WireFormat getPreferedWireFormat()
public void setPreferedWireFormat(WireFormat preferedWireFormat)
preferedWireFormat
- The preferedWireFormat to set.public static WireFormat getWireFormat(String format) throws JMSException
format
-
JMSException
protected static JMSException createJMSexception(String protocol, Exception e)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |