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.MimeQuotedPrintableDecoder
All Packages  This Package  Class Hierarchy  Class Search  Index

Class grendel.mime.encoder.MimeQuotedPrintableDecoder

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

Implements a Quoted-Printable -> plaintext decoder.


public class  MimeQuotedPrintableDecoder
     extends grendel.mime.encoder.MimeEncoder
{
          // Fields 7
     private static final byte CR;
     private static final byte ESC;
     private static final byte LF;
     private static final byte NUL;
     private static final byte[] map;
     private byte[] token;
     private int token_length;

          // Constructors 1
     public MimeQuotedPrintableDecoder();

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



Fields


token

   private byte[] token


token_length

   private int token_length


NUL

   private static final byte NUL


ESC

   private static final byte ESC


CR

   private static final byte CR


LF

   private static final byte LF


map

   private static final byte[] map



Constructors


MimeQuotedPrintableDecoder

   public MimeQuotedPrintableDecoder() 

Default constructor




Methods


translate

   public final void translate(ByteBuf in, 
                               ByteBuf out) 

Given a sequence of input bytes using the quoted-printable encoding, produces a sequence of unencoded 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.

Overrides:
translate in class MimeEncoder


eof

   public final void eof(ByteBuf out) 

Tell the quoted-printable 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.

Overrides:
eof in class MimeEncoder


All Packages  This Package  Class Hierarchy  Class Search  Index
Freshly brewed Java API Documentation automatically generated with polardoc Version 1.0.4
Copyright © 1998-1999 The Mozilla Organization.
Last modified December 25, 1998.