All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object | +----w3c.mime.MIMEParser
This parsing is done in two stages. In the first stage, only header names and header values (as String) are parsed. These informations are built into a MIMEHeader object which than parses header value according to some specific type.
You can use this class either directly, or subclass MIMEParser and MIMEHeader for example, to get HTTPParser and Request in the HTTP context, or MAILParser and MAILHeaders in SMTP context.
protected int ch
protected InputStream input
protected byte buffer[]
protected int bsize
public MIMEParser(InputStream input)
protected void expect(int car) throws MIMEParserException, IOException
protected void skipSpaces() throws MIMEParserException, IOException
protected final void append(int c)
protected String parse822HeaderName() throws MIMEParserException, IOException
protected String parse822HeaderBody() throws MIMEParserException, IOException
protected String parseToken(boolean lower) throws MIMEParserException, IOException
protected void parse822Headers(Hashtable into) throws MIMEParserException, IOException
public MIMEHeaders getMIMEHeaders() throws MIMEException
public BufferedInputStream getInputStream()
public static void main(String args[])
All Packages Class Hierarchy This Package Previous Next Index