    All Packages  Class Hierarchy  This Package  Previous  Next  Index

# Class w3c.www.mime.MimeParser

    java.lang.Object
       |
       +----w3c.www.mime.MimeParser

public class MimeParser
extends Object

The MimeParser class parses an input MIME stream.

##

bsize
buffer
ch
factory
  The factory used to create new MIME header holders.
input

##

MimeParser(InputStream, MimeParserFactory)
  Create an instance of the MIMEParser class.

##

append(int)
expect(int)
getInputStream()
  Get the message body, as an input stream.
main(String[])
  Debuging
parse()
parse822HeaderBody()
parse822HeaderName()
parse822Headers(MimeHeaderHolder)
parseToken(boolean)
read()
skipSpaces()
unread(int)

##

ch

     protected int ch

input

     protected InputStream input

buffer

     protected byte buffer[]

bsize

     protected int bsize

factory

     protected MimeParserFactory factory

  The factory used to create new MIME header holders.

##

MimeParser

     public MimeParser(InputStream input,
                       MimeParserFactory factory)

  Create an instance of the MIMEParser class.

  Parameters:
    in - The input stream to be parsed as a MIME stream.
    factory - The factory used to create MIME header holders.

##

expect

     protected void expect(int car) throws MimeParserException, IOException

skipSpaces

     protected void skipSpaces() throws MimeParserException, IOException

append

     protected final void append(int c)

parse822HeaderName

     protected String parse822HeaderName() throws MimeParserException, IOException

parse822HeaderBody

     protected void parse822HeaderBody() throws MimeParserException, IOException

parseToken

     protected String parseToken(boolean lower) throws MimeParserException, IOException

parse822Headers

     protected void parse822Headers(MimeHeaderHolder msg) throws MimeParserException, IOException

parse

     public MimeHeaderHolder parse() throws MimeParserException, IOException

read

     public int read() throws IOException

unread

     public void unread(int ch)

getInputStream

     public InputStream getInputStream()

  Get the message body, as an input stream.

  Returns:
    The input stream used by the parser to get data, after a call to `parse`, this input stream contains exactly the body of the message.

main

     public static void main(String args[])

  Debuging

    All Packages  Class Hierarchy  This Package  Previous  Next  Index