All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class netscape.messaging.mime.MIMEDynamicParser

java.lang.Object
   |
   +----netscape.messaging.mime.MIMEDynamicParser

public final class MIMEDynamicParser
extends Object
The MIMEDynamicParser class defines the MIME Dynamic Parser.


Constructor Index

 o MIMEDynamicParser(MIMEDataSink)
Constructor for the Dynamic Parser.

Method Index

 o beginParse()
Begins a new parse cycle and resets parser internal data-structures.
 o endParse()
Ends parse.
 o parse(byte[])
Parses more incoming data.
 o parse(InputStream)
Parse more incoming data.

Constructors

 o MIMEDynamicParser
 public MIMEDynamicParser(MIMEDataSink dataSink) throws MIMEException
Constructor for the Dynamic Parser.

Parameters:
dataSink - User's datasink for callbacks. Cannot be null.
Returns:
New MIMEParser object
Throws: MIMEException
If dataSink is null or an error occurs.

Methods

 o beginParse
 public void beginParse() throws MIMEException
Begins a new parse cycle and resets parser internal data-structures. This method is called when the user wants to initiate message parsing.

Throws: MIMEException
If the parser object was not properly set-up.
 o parse
 public void parse(InputStream input) throws MIMEException
Parse more incoming data. This method can be called several times between beginParse() and endParse().

Parameters:
input - User's input-stream. Source of data for parse operation.
Throws: MIMEException
If parser detects MIME format errors.
 o parse
 public void parse(byte inputData[]) throws MIMEException
Parses more incoming data. This method can be called several times between beginParse() and endParse().

Parameters:
inputData - User's input. Source of data for parse operation.
Throws: MIMEException
If parser detects MIME format errors.
 o endParse
 public void endParse() throws MIMEException
Ends parse. Tells parser there is no more data to parse. Parser winds up parse operation of the message being parsed.

Throws: MIMEException
If parser detects MIME format errors.

All Packages  Class Hierarchy  This Package  Previous  Next  Index