|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Decoder
Interface to define a Decoder as obtained
by the DecoderFactory
on the basis of the
Article
supplied
Due to the difference in implementation of the Decoders
the actual decoding is done either when a piece is added or on
a call to getFileMessage()
DecoderFactory
Method Summary | |
---|---|
void |
decodePiece(java.lang.String s)
hand a piece of coded characters to the Decoder |
FileMessage |
getFileMessage()
get the FileMessage with a reference to
the decoded bytes |
Method Detail |
---|
void decodePiece(java.lang.String s) throws java.lang.Exception
s
- String, a piece or the complete encoded
characters to decode
Exception,
- thrown if the Piece cannot be
added for decoding
java.lang.Exception
getFileMessage()
FileMessage getFileMessage() throws java.lang.Exception
FileMessage
with a reference to
the decoded bytes
FileMessage
the reference to the decoded
bytes and possible file information
Exception,
- thrown if the decoder cannot decode
the file or FileMessage cannot be created
java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |