com.sun.mail.util
Class BEncoderStream

java.lang.Object
  extended by java.io.OutputStream
      extended by java.io.FilterOutputStream
          extended by com.sun.mail.util.BASE64EncoderStream
              extended by com.sun.mail.util.BEncoderStream
All Implemented Interfaces:
java.io.Closeable, java.io.Flushable

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

Field Summary
 
Fields inherited from class java.io.FilterOutputStream
out
 
Constructor Summary
BEncoderStream(java.io.OutputStream out)
          Create a 'B' encoder that encodes the specified input stream.
 
Method Summary
static int encodedLength(byte[] b)
          Returns the length of the encoded version of this byte array.
 
Methods inherited from class com.sun.mail.util.BASE64EncoderStream
close, encode, flush, write, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BEncoderStream

public BEncoderStream(java.io.OutputStream out)
Create a 'B' encoder that encodes the specified input stream.

Parameters:
out - the output stream
Method Detail

encodedLength

public static int encodedLength(byte[] b)
Returns the length of the encoded version of this byte array.



Copyright © 2010 Sun Microsystems, Inc.. All Rights Reserved.