    All Packages  Class Hierarchy  This Package  Previous  Next  Index

# Interface w3c.www.mime.MimeHeaderHolder

public interface MimeHeaderHolder

##

notifyBeginParsing(MimeParser)
  The parsing is now about to start, take any appropriate action.
notifyEndParsing(MimeParser)
  All the headers have been parsed, take any appropriate actions.
notifyHeader(String, byte[], int, int)
  A new header has been parsed.

##

notifyHeader

     public abstract void notifyHeader(String name,
                                       byte buf[],
                                       int off,
                                       int len) throws MimeParserException

  A new header has been parsed.

  Parameters:
    name - The name of the encountered header.
    buf - The byte buffer containing the value.
    off - Offset of the header value in the above buffer.
    len - Length of the value in the above header.

notifyBeginParsing

     public abstract boolean notifyBeginParsing(MimeParser parser) throws MimeParserException, IOException

  The parsing is now about to start, take any appropriate action. This hook can return a true boolean value to enforce the MIME parser into transparent mode (eg the parser will not try to parse any headers.

  This hack is primarily defined for HTTP/0.9 support, it might also be usefull for other hacks.

  Parameters:
    parser - The Mime parser.
  Returns:
    A boolean true if the MimeParser shouldn't continue the parsing, false otherwise.

notifyEndParsing

     public abstract void notifyEndParsing(MimeParser parser) throws MimeParserException, IOException

  All the headers have been parsed, take any appropriate actions.

  Parameters:
    parser - The Mime parser.

    All Packages  Class Hierarchy  This Package  Previous  Next  Index