Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.w3c.www.mime
Class MimeParser

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

public class MimeParser
extends java.lang.Object

The MimeParser class parses an input MIME stream.

Field Summary
`protected int` | `bsize`
`protected byte[]` | `buffer`
`protected int` | `ch`
`protected MimeParserFactory` | `factory` The factory used to create new MIME header holders.
`protected java.io.InputStream` | `input`

Constructor Summary
`MimeParser(java.io.InputStream input, MimeParserFactory factory)` Create an instance of the MIMEParser class.

Method Summary
`protected void` | `append(int c)`
`protected void` | `expect(int car)`
`java.io.InputStream` | `getInputStream()` Get the message body, as an input stream.
`static void` | `main(java.lang.String[] args)` Debuging
`MimeHeaderHolder` | `parse()`
`protected void` | `parse822HeaderBody()`
`protected java.lang.String` | `parse822HeaderName()`
`protected void` | `parse822Headers(MimeHeaderHolder msg)`
`protected java.lang.String` | `parseToken(boolean lower)`
`int` | `read()`
`protected void` | `skipSpaces()`
`void` | `unread(int ch)`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### ch

    protected int ch

### input

    protected java.io.InputStream input

### buffer

    protected byte[] buffer

### bsize

    protected int bsize

### factory

    protected MimeParserFactory factory

  The factory used to create new MIME header holders.

Constructor Detail

### MimeParser

    public MimeParser(java.io.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.

Method Detail

### expect

    protected void expect(int car)
                   throws MimeParserException,
                          java.io.IOException

### skipSpaces

    protected void skipSpaces()
                       throws MimeParserException,
                              java.io.IOException

### append

    protected final void append(int c)

### parse822HeaderName

    protected java.lang.String parse822HeaderName()
                                           throws MimeParserException,
                                                  java.io.IOException

### parse822HeaderBody

    protected void parse822HeaderBody()
                               throws MimeParserException,
                                      java.io.IOException

### parseToken

    protected java.lang.String parseToken(boolean lower)
                                   throws MimeParserException,
                                          java.io.IOException

### parse822Headers

    protected void parse822Headers(MimeHeaderHolder msg)
                            throws MimeParserException,
                                   java.io.IOException

### parse

    public MimeHeaderHolder parse()
                           throws MimeParserException,
                                  java.io.IOException

### read

    public int read()
             throws java.io.IOException

### unread

    public void unread(int ch)

### getInputStream

    public java.io.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(java.lang.String[] args)

  Debuging

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD