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 IndexFreshly brewed Java API Documentation automatically generated with polardoc Version 1.0.4