|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.OutputStream
java.io.FilterOutputStream
de.janrufmonitor.util.io.Base64Encoder
public class Base64Encoder
This class provides utilities for base64 enconding.
| Field Summary |
|---|
| Fields inherited from class java.io.FilterOutputStream |
|---|
out |
| Constructor Summary | |
|---|---|
Base64Encoder(OutputStream out)
Constructs a new Base64 encoder that writes output to the given OutputStream. |
|
| Method Summary | |
|---|---|
void |
close()
Closes the stream, this MUST be called to ensure proper padding is written to the end of the output stream. |
static String |
encode(String unencoded)
Returns the encoded form of the given unencoded string. |
void |
write(byte[] b,
int off,
int len)
Writes the given byte array to the output stream in an encoded form. |
void |
write(int b)
Writes the given byte to the output stream in an encoded form. |
| Methods inherited from class java.io.FilterOutputStream |
|---|
flush, write |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Base64Encoder(OutputStream out)
out - the output stream| Method Detail |
|---|
public void write(int b)
throws IOException
write in class FilterOutputStreamb - TBD: Description of the incoming method parameter
IOException - if an I/O error occurs
public void write(byte[] b,
int off,
int len)
throws IOException
write in class FilterOutputStreamb - the data to be writtenoff - the start offset of the datalen - the length of the data
IOException - if an I/O error occurs
public void close()
throws IOException
close in interface Closeableclose in class FilterOutputStreamIOException - if an I/O error occurspublic static String encode(String unencoded)
unencoded - the string to encode
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||