public class Base64EncodeStream
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 |
|---|
Base64EncodeStream(java.io.OutputStream out) |
Base64EncodeStream(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 Base64EncodeStream(java.io.OutputStream out)
public Base64EncodeStream(java.io.OutputStream out,
boolean closeOutOnClose)
public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.OutputStreamjava.io.IOExceptionpublic void flush()
throws java.io.IOException
flush in interface java.io.Flushableflush in class java.io.OutputStreamjava.io.IOExceptionpublic void write(int b)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOExceptionpublic void write(byte[] data)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOExceptionpublic void write(byte[] data,
int off,
int len)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOExceptionvoid encodeAtom()
throws java.io.IOException
java.io.IOExceptionvoid encodeFromArray(byte[] data,
int offset,
int len)
throws java.io.IOException
java.io.IOException