Modifier and Type | Method and Description |
---|---|
MimeException |
MimeIOException.getCause()
Returns the
MimeException that caused this
MimeIOException . |
Constructor and Description |
---|
MimeIOException(MimeException cause)
Constructs an IO exception based on
MimeException . |
Modifier and Type | Method and Description |
---|---|
static MessageServiceFactory |
MessageServiceFactory.newInstance() |
Header |
MessageBuilder.parseHeader(InputStream source) |
Message |
MessageBuilder.parseMessage(InputStream source) |
Modifier and Type | Class and Description |
---|---|
class |
ParseException
This exception is thrown when parse errors are encountered.
|
Modifier and Type | Method and Description |
---|---|
static ParsedField |
LenientFieldParser.parse(ByteSequence raw,
DecodeMonitor monitor)
Parses the given byte sequence and returns an instance of the
ParsedField class. |
static ParsedField |
DefaultFieldParser.parse(ByteSequence raw,
DecodeMonitor monitor)
Parses the given byte sequence and returns an instance of the
ParsedField class. |
static ParsedField |
LenientFieldParser.parse(String rawStr)
Parses the given string and returns an instance of the
ParsedField class. |
static ParsedField |
DefaultFieldParser.parse(String rawStr) |
static ParsedField |
LenientFieldParser.parse(String rawStr,
DecodeMonitor monitor)
Parses the given string and returns an instance of the
Field class. |
static ParsedField |
DefaultFieldParser.parse(String rawStr,
DecodeMonitor monitor)
Parses the given string and returns an instance of the
ParsedField class. |
Modifier and Type | Class and Description |
---|---|
class |
MaxHeaderLengthLimitException
Signals a I/O error due to the total header length exceeding the maximum limit.
|
class |
MaxHeaderLimitException
Signals a I/O error due to the header count exceeding the maximum limit.
|
Modifier and Type | Method and Description |
---|---|
Field |
DefaultBodyDescriptorBuilder.addField(RawField rawfield) |
void |
SimpleContentHandler.field(Field field) |
Modifier and Type | Method and Description |
---|---|
void |
ContentHandler.body(BodyDescriptor bd,
InputStream is)
Called when the body of a discrete (non-multipart) entity is about to
be parsed.
|
void |
AbstractContentHandler.body(BodyDescriptor bd,
InputStream is) |
void |
ContentHandler.endBodyPart()
Called when a body part ends.
|
void |
AbstractContentHandler.endBodyPart() |
void |
ContentHandler.endHeader()
Called when there are no more header fields in a message or body part.
|
void |
AbstractContentHandler.endHeader() |
void |
ContentHandler.endMessage()
Called when a message ends.
|
void |
AbstractContentHandler.endMessage() |
void |
ContentHandler.endMultipart()
Called when the body of an entity has been parsed.
|
void |
AbstractContentHandler.endMultipart() |
void |
ContentHandler.epilogue(InputStream is)
Called for the epilogue (whatever comes after the final body part)
of a
multipart/* entity. |
void |
AbstractContentHandler.epilogue(InputStream is) |
void |
ContentHandler.field(Field rawField)
Called for each field of a header.
|
void |
AbstractContentHandler.field(Field field) |
void |
MimeStreamParser.parse(InputStream instream)
Parses a stream of bytes containing a MIME message.
|
void |
ContentHandler.preamble(InputStream is)
Called for the preamble (whatever comes before the first body part)
of a
multipart/* entity. |
void |
AbstractContentHandler.preamble(InputStream is) |
void |
ContentHandler.raw(InputStream is)
Called when a new entity (message or body part) starts and the
parser is in
raw mode. |
void |
AbstractContentHandler.raw(InputStream is) |
void |
ContentHandler.startBodyPart()
Called when a new body part starts inside a
multipart/* entity. |
void |
AbstractContentHandler.startBodyPart() |
void |
ContentHandler.startHeader()
Called when a header (of a message or body part) is about to be parsed.
|
void |
AbstractContentHandler.startHeader() |
void |
ContentHandler.startMessage()
Called when a new message starts (a top level message or an embedded
rfc822 message).
|
void |
AbstractContentHandler.startMessage() |
void |
ContentHandler.startMultipart(BodyDescriptor bd)
Called when the body of a multipart entity is about to be parsed.
|
void |
AbstractContentHandler.startMultipart(BodyDescriptor bd) |
Modifier and Type | Class and Description |
---|---|
class |
MimeParseEventException
Indicates that strict parsing has been enabled
and an optional invality has been found in the input.
|
Modifier and Type | Method and Description |
---|---|
Field |
BodyDescriptorBuilder.addField(RawField field)
Updates builder's internal state by adding a new field.
|
EntityStateMachine |
EntityStateMachine.advance()
Advances the state machine to the next state in the
process of the MIME stream parsing.
|
void |
FieldBuilder.append(ByteArrayBuffer line)
Updates builder's internal state by adding a new line of text.
|
RawField |
FieldBuilder.build()
Builds an instance of
RawField based on the internal state. |
RawField |
DefaultFieldBuilder.build() |
EntityState |
MimeTokenStream.next()
This method advances the token stream to the next token.
|
RawField |
RawFieldParser.parseField(ByteSequence raw)
Parses the sequence of bytes into
RawField . |
Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.