|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.OutputStream
java.io.FilterOutputStream
com.sapportals.wcm.util.base64.Base64Encoder
A class to encode Base64 streams and strings.
| 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
b - 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
b - 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
IOException - if an I/O error occurspublic static String encode(String unencoded)
unencoded - the string to encode
|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||