|
xmlBlaster 1.6.2 API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Interface to support different serialization formats of messages. Those serialized messages can, for example, be send over the SOCKET protocol or as email attachments.
| Method Summary | |
byte[] |
createRawMsg(MsgInfo msgInfo)
Dumps the given MsgInfo to a byte array |
java.lang.String |
getExtension(boolean isCompressed)
Get a specific extension for this format. |
java.lang.String |
getMimetype(boolean isCompressed)
Get a specific extension for this format. |
void |
init(Global glob,
I_ProgressListener progressListener,
I_PluginConfig pluginConfig)
Is guaranteed to be called by the MsgInfoParserFactory after construction. |
MsgInfo[] |
parse(java.io.InputStream in)
Parses a serialized message from input stream |
java.lang.String |
toLiteral(byte[] arr)
Get the raw messages as a string, for tests and for dumping only. |
java.lang.String |
toLiteral(MsgInfo msgInfo)
Get the raw messages as a string, for tests and for dumping only. |
| Method Detail |
public void init(Global glob,
I_ProgressListener progressListener,
I_PluginConfig pluginConfig)
throws XmlBlasterException
glob - progressListener - pluginConfig - Can be null
XmlBlasterException
public MsgInfo[] parse(java.io.InputStream in)
throws java.io.IOException,
java.lang.IllegalArgumentException,
XmlBlasterException
in - The raw, serialized data
java.io.IOException
java.lang.IllegalArgumentException
XmlBlasterException
public byte[] createRawMsg(MsgInfo msgInfo)
throws XmlBlasterException
msgInfo -
XmlBlasterException
public java.lang.String toLiteral(MsgInfo msgInfo)
throws XmlBlasterException
XmlBlasterExceptionpublic java.lang.String toLiteral(byte[] arr)
arr - The raw blob
public java.lang.String getMimetype(boolean isCompressed)
public java.lang.String getExtension(boolean isCompressed)
|
xmlBlaster 1.6.2 API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||