You are currently viewing a snapshot of www.mozilla.org taken on April 21, 2008. Most of this content is highly out of date (some pages haven't been updated since the project began in 1998) and exists for historical purposes only. If there are any pages on this archive site that you think should be added back to www.mozilla.org, please file a bug.



All Packages  This Package  Class Hierarchy  Class Search  Index

Interface grendel.mime.IMimeParser

This is an interface for streaming parsing of MIME data.

See Also: MimeParserFactory, IMimeOperator, IMimeObject


public interface  IMimeParser
{
          // Methods 4
     public abstract IMimeObject getObject();
     public abstract void pushBytes(ByteBuf);
     public abstract void pushEOF();
     public abstract void setOperator(IMimeOperator);
}



Methods


setOperator

   public abstract void setOperator(IMimeOperator op) 

Set the IMimeOperator associated with this parser. Since the parsers and operators both need access to each other, one will create a parser, then create an operator for it, then point the parser at the operator using this method. It is an error to try and change the operator once it has already been set.



pushBytes

   public abstract void pushBytes(ByteBuf buffer) 

Feed bytes to be parsed into the parser.



pushEOF

   public abstract void pushEOF() 

Inform the parser that no more bytes will be forthcoming.



getObject

   public abstract IMimeObject getObject() 

Returns a corresponding object implementing the IMimeObject interface. This will very likely be the same object.



All Packages  This Package  Class Hierarchy  Class Search  Index
Freshly brewed Java API Documentation automatically generated with polardoc Version 1.0.4