The Mozilla
Organization
At A Glance
Feedback
Get Involved
Newsgroups
License Terms
Newsbot
Developer Docs
Roadmap
Projects
Ports
Module Owners
Hacking
Get the Source
Build It
Testing
Download
Bugzilla
Bug Writing
Tools
View Source
Tree Status
New Checkins
Submit A Bug
FAQ
Search
Interface grendel.mime.IMimeParser
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
Copyright © 1998-2000 The Mozilla Organization.
Last modified September 9, 1998.