| java.lang.Object org.w3c.www.mime.MimeParser
MimeParser | public class MimeParser (Code) | | The MimeParser class parses an input MIME stream.
|
bsize | protected int bsize(Code) | | |
buffer | protected byte buffer(Code) | | |
MimeParser | public MimeParser(InputStream input, MimeParserFactory factory)(Code) | | Create an instance of the MIMEParser class.
Parameters: in - The input stream to be parsed as a MIME stream. Parameters: factory - The factory used to create MIME header holders. |
append | final protected void append(int c)(Code) | | |
getInputStream | public InputStream getInputStream()(Code) | | Get the message body, as an input stream.
The input stream used by the parser to get data, after a call to parse , this input stream contains exactlythe body of the message. |
parse | public MimeHeaderHolder parse(boolean lenient) throws MimeParserException, IOException(Code) | | parse the stream, and create a MimeHeaderHolder containing all
the parsed headers, note that invalid headers will trigger an exception
in stirct mode, and will just be removed in lenient mode
lenient, a boolean, true if we want to be kind with bad people a MimeHeaderHolder instance containing the aprsed headers |
parse | public MimeHeaderHolder parse() throws MimeParserException, IOException(Code) | | parse the stream, and create a MimeHeaderHolder containing all
the parsed headers, in lenient mode
Always be lenient by default (general rule is: be lenient in what you
accept conservative with what you generate).
|
unread | public void unread(int ch)(Code) | | |
|
|