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.
-
MIMEDynamicParser(MIMEDataSink)
- Constructor for the Dynamic Parser.
-
beginParse()
- Begins a new parse cycle and resets parser internal data-structures.
-
endParse()
- Ends parse.
-
parse(byte[])
- Parses more incoming data.
-
parse(InputStream)
- Parse more incoming data.
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.
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.
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.
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.
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