|
xmlBlaster 2.2.0 client API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface I_MsgInfoParser
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 |
---|
void init(Global glob, I_ProgressListener progressListener, I_PluginConfig pluginConfig) throws XmlBlasterException
glob
- progressListener
- pluginConfig
- Can be null
XmlBlasterException
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
byte[] createRawMsg(MsgInfo msgInfo) throws XmlBlasterException
msgInfo
-
XmlBlasterException
java.lang.String toLiteral(MsgInfo msgInfo) throws XmlBlasterException
XmlBlasterException
java.lang.String toLiteral(byte[] arr)
arr
- The raw blob
java.lang.String getMimetype(boolean isCompressed)
java.lang.String getExtension(boolean isCompressed)
|
xmlBlaster 2.2.0 client API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |