FileDocCategorySizeDatePackage
BEncoderStream.javaAPI DocGlassfish v2 API2772Mon May 14 15:28:46 BST 2007com.sun.mail.util

BEncoderStream

public class BEncoderStream extends BASE64EncoderStream
This class implements a 'B' Encoder as defined by RFC2047 for encoding MIME headers. It subclasses the BASE64EncoderStream class.
author
John Mani

Fields Summary
Constructors Summary
public BEncoderStream(OutputStream out)
Create a 'B' encoder that encodes the specified input stream.

param
out the output stream

	super(out, Integer.MAX_VALUE); // MAX_VALUE is 2^31, should
				       // suffice (!) to indicate that
				       // CRLFs should not be inserted
    
Methods Summary
public static intencodedLength(byte[] b)
Returns the length of the encoded version of this byte array.

        return ((b.length + 2)/3) * 4;