public class Base64EncoderStream
extends java.io.OutputStream
Modifier and Type | Field and Description |
---|---|
(package private) byte[] |
atom |
(package private) int |
atomLen |
(package private) boolean |
closeOutOnClose |
(package private) byte[] |
encodeBuf |
(package private) int |
lineLen |
(package private) java.io.PrintStream |
out |
private static byte[] |
pem_array
This array maps the 6 bit values to their characters
|
Constructor and Description |
---|
Base64EncoderStream(java.io.OutputStream out) |
Base64EncoderStream(java.io.OutputStream out,
boolean closeOutOnClose) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
(package private) void |
encodeAtom()
enocodeAtom - Take three bytes of input and encode it as 4
printable characters.
|
(package private) void |
encodeFromArray(byte[] data,
int offset,
int len)
enocodeAtom - Take three bytes of input and encode it as 4
printable characters.
|
void |
flush()
This can't really flush out output since that may generate
'=' chars which would indicate the end of the stream.
|
void |
write(byte[] data) |
void |
write(byte[] data,
int off,
int len) |
void |
write(int b) |
private static final byte[] pem_array
byte[] atom
int atomLen
byte[] encodeBuf
int lineLen
java.io.PrintStream out
boolean closeOutOnClose
public Base64EncoderStream(java.io.OutputStream out)
public Base64EncoderStream(java.io.OutputStream out, boolean closeOutOnClose)
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.OutputStream
java.io.IOException
public void flush() throws java.io.IOException
flush
in interface java.io.Flushable
flush
in class java.io.OutputStream
java.io.IOException
public void write(int b) throws java.io.IOException
write
in class java.io.OutputStream
java.io.IOException
public void write(byte[] data) throws java.io.IOException
write
in class java.io.OutputStream
java.io.IOException
public void write(byte[] data, int off, int len) throws java.io.IOException
write
in class java.io.OutputStream
java.io.IOException
void encodeAtom() throws java.io.IOException
java.io.IOException
void encodeFromArray(byte[] data, int offset, int len) throws java.io.IOException
java.io.IOException