|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.OutputStream
org.apache.myfaces.trinidad.util.Base64OutputStream
public class Base64OutputStream
An OutputStream that encodes data in a base64 representation. It takes a Writer as its single argument to its constructor and all bytes written to the stream are correspondingly converted into Base64 and written out to the provided writer.
Constructor Summary | |
---|---|
Base64OutputStream(java.io.Writer out)
|
Method Summary | |
---|---|
void |
close()
Call this method to indicate end of data stream and to append any padding characters if necessary. |
void |
finish()
Deprecated. use the close() method instead. |
void |
flush()
|
void |
write(byte[] b,
int off,
int len)
Writes len bytes from the specified byte array starting at offset off to this output stream. |
void |
write(int b)
Takes a byte writes it out to the writer |
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(java.io.Writer out)
Method Detail |
---|
public void write(int b) throws java.io.IOException
write
in class java.io.OutputStream
b
- a byte
java.io.IOException
public void write(byte[] b, int off, int len) throws java.io.IOException, java.lang.NullPointerException
write
in class java.io.OutputStream
b
- the dataoff
- the start offset in the datalen
- the number of bytes to read
java.io.IOException
java.lang.NullPointerException
public void flush() throws java.io.IOException
flush
in interface java.io.Flushable
flush
in class java.io.OutputStream
java.io.IOException
@Deprecated public void finish() throws java.io.IOException
java.io.IOException
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in class java.io.OutputStream
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |