|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.brains2b.coffee.decode.MimeDecoder
public class MimeDecoder
Decode mime-encoded content
Will ignore everything that is text without a Content-Disposition
and decodes other found content if it is Base64
or
content-printable
Other Content-Types might be included in future releases
Constructor Summary | |
---|---|
MimeDecoder()
|
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 |
void |
setBoundary(java.lang.String boundary)
set the boundary as supplied by the message in the header as ';boundary=' |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MimeDecoder()
Method Detail |
---|
public void decodePiece(java.lang.String s) throws java.lang.Exception
Decoder
decodePiece
in interface Decoder
s
- String, a piece or the complete encoded
characters to decode
java.lang.Exception
Decoder.getFileMessage()
public void setBoundary(java.lang.String boundary)
Value does not have to be set for the Decoder to work and often is not
boundary
- String, the boundary between the
content typesArticleHeader.getMimeType()
public FileMessage getFileMessage() throws java.lang.Exception
Decoder
FileMessage
with a reference to
the decoded bytes
getFileMessage
in interface Decoder
FileMessage
the reference to the decoded
bytes and possible file information
java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |