public class MimeStreamReader extends ByteStream
Stream for parsing MIME multipart/mixed messages.
empty
Modifier and Type | Method and Description |
---|---|
static MimeStreamReader |
newMultipart(java.lang.String boundary,
ByteStream stream)
Return a new MIME stream for an outer multipart/mixed message.
|
MimePart |
nextPart()
Return (nullable) The next
MimePart in the stream, or null if no more parts are available. |
int |
readByte()
Read a single byte from this stream.
|
asText, copyTo, copyTo, copyToFile, fileWriter, fromBinary, fromBinary, fromBinary, fromFile, fromInput, fromStream, fromText, getCanUndo, getDataType, readAndClose, readBinary, readBinary, toBuffer, toInput, toString, undoRead, withUndo, writeBinary, writeByte
close, flush, getEntityTag, getFileName, getMediaType, setEntityTag, setFileName, setMediaType
cloneMutable, equals, getTypeCode, hashCode
public static MimeStreamReader newMultipart(java.lang.String boundary, ByteStream stream)
Return a new MIME stream for an outer multipart/mixed message.
boundary
- MIME boundary string.stream
- Stream containing MIME message. Will be consumed by MimeStreamReader.readByte
and MimeStreamReader.nextPart
calls.public MimePart nextPart()
Return (nullable) The next MimePart
in the stream, or null
if no more parts are available.
MimePart
in the stream, or null
if no more parts are available.public int readByte()
Read a single byte from this stream.
readByte
in class ByteStream
-1
at end of stream.