Module com.sun.xml.messaging.saaj
Class BEncoderStream
java.lang.Object
java.io.OutputStream
java.io.FilterOutputStream
com.sun.xml.messaging.saaj.packaging.mime.util.BASE64EncoderStream
com.sun.xml.messaging.saaj.packaging.mime.util.BEncoderStream
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
This class implements a 'B' Encoder as defined by RFC2047 for
encoding MIME headers. It subclasses the BASE64EncoderStream
class.
-
Field Summary
Fields inherited from class java.io.FilterOutputStream
out
-
Constructor Summary
ConstructorDescriptionCreate a 'B' encoder that encodes the specified input stream. -
Method Summary
Modifier and TypeMethodDescriptionstatic int
encodedLength
(byte[] b) Returns the length of the encoded version of this byte array.Methods inherited from class com.sun.xml.messaging.saaj.packaging.mime.util.BASE64EncoderStream
close, encode, flush, write, write, write
Methods inherited from class java.io.OutputStream
nullOutputStream
-
Constructor Details
-
BEncoderStream
Create a 'B' encoder that encodes the specified input stream.- Parameters:
out
- the output stream
-
-
Method Details
-
encodedLength
public static int encodedLength(byte[] b) Returns the length of the encoded version of this byte array.- Parameters:
b
- byte array.- Returns:
- length of the byte array.
-