|
||||||||||
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(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(Writer out)
Method Detail |
---|
public void write(int b) throws IOException
write
in class OutputStream
b
- a byte
IOException
public void write(byte[] b, int off, int len) throws IOException, NullPointerException
write
in class OutputStream
b
- the dataoff
- the start offset in the datalen
- the number of bytes to read
IOException
NullPointerException
public void flush() throws IOException
flush
in interface Flushable
flush
in class OutputStream
IOException
@Deprecated public void finish() throws IOException
IOException
public void close() throws IOException
close
in interface Closeable
close
in class OutputStream
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |