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
Class grendel.mime.encoder.MimeEncoder
All Packages  This Package  Class Hierarchy  Class Search  Index

Class grendel.mime.encoder.MimeEncoder

java.lang.Object
   |
   +----grendel.mime.encoder.MimeEncoder

public abstract class  MimeEncoder
     extends java.lang.Object
{
          // Constructors 1
     public MimeEncoder();

          // Methods 2
     public abstract void eof(ByteBuf);
     public abstract void translate(ByteBuf, ByteBuf);
}



Constructors


MimeEncoder

   public MimeEncoder() 

Default constructor




Methods


translate

   public abstract void translate(ByteBuf in, 
                                  ByteBuf out) 

Given a sequence of input bytes, produces a sequence of output bytes. Note that some (small) amount of buffering may be necessary, if the input byte stream didn't fall on an appropriate boundary. If there are bytes in `out' already, the new bytes are appended, so the caller should do `out.setLength(0)' first if that's desired.



eof

   public abstract void eof(ByteBuf out) 

Tell the decoder that no more input data will be forthcoming. This may result in output, as a result of flushing the internal buffer. This object must not be used again after calling eof(). If there are bytes in `out' already, the new bytes are appended, so the caller should do `out.setLength(0)' first if that's desired.



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 December 25, 1998.