|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.OutputStream
com.novell.io.Base64OutputStream
An extension of java.io.OutputStream that will encode bytes into
chars using base64 encoding.
Base64InputStream| Constructor Summary | |
Base64OutputStream(Writer out)
Creates a new Base64OutputStream that will write the encoded data to the passed Writer. |
|
| Method Summary | |
void |
close()
Closes the stream. |
protected void |
empty_buffer()
Encode all buffered bytes and write the encoded bytes to the output stream. |
static char[] |
encode(byte[] data)
Encode an array of bytes into an array of chars using base64 encoding. |
static char[] |
encode(byte[] data,
boolean wrap)
Encode an array of bytes into an array of chars using base64 encoding. |
static char[] |
encode(byte[] data,
int off,
int len)
Encode an array of bytes into an array of chars using base64 encoding. |
static char[] |
encode(byte[] data,
int off,
int len,
boolean wrap)
Encode an array of bytes into an array of chars using base64 encoding. |
void |
flush()
|
void |
write(byte[] b,
int off,
int len)
Writes a subarray of bytes. |
void |
write(InputStream is)
Writes a inputStream. |
void |
write(int b)
Writes a byte. |
| Methods inherited from class java.io.OutputStream |
write |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Base64OutputStream(Writer out)
Writer.
out - the Writer to which the encoded data will
be written.| Method Detail |
public void write(int b)
throws IOException
byte. This method will block until the byte is
actually written.
b - the byte
IOException - If an I/O error has occurred.
public void write(byte[] b,
int off,
int len)
throws IOException
bytes.
b - the data to be writtenoff - the start offset in the datalen - the number of bytes to be written
IOException - If an I/O error has occurred.
public void write(InputStream is)
throws IOException
is - the inputStream to be written
IOException - If an I/O error has occurred.
public void flush()
throws IOException
IOException
public void close()
throws IOException
IOException - If an I/O error has occurred.
protected void empty_buffer()
throws IOException
IOException - If an I/O error has occurred.public static char[] encode(byte[] data)
bytes into an array of chars using base64 encoding.
data - The bytes to be encoded.
public static char[] encode(byte[] data,
boolean wrap)
bytes into an array of chars using base64 encoding.
data - The bytes to be encoded.wrap - true if should wrap lines
public static char[] encode(byte[] data,
int off,
int len)
bytes into an array of chars using base64 encoding.
data - The bytes to be encoded.off - The starting offset in datalen - The number of bytes to encode.
public static char[] encode(byte[] data,
int off,
int len,
boolean wrap)
bytes into an array of chars using base64 encoding.
data - The bytes to be encoded.off - The starting offset in datalen - The number of bytes to encode.wrap - true if should wrap lines
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||