Package android.util
Class Base64OutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- java.io.FilterOutputStream
-
- android.util.Base64OutputStream
-
- All Implemented Interfaces:
java.io.Closeable,java.io.Flushable,java.lang.AutoCloseable
public class Base64OutputStream extends java.io.FilterOutputStreamAn OutputStream that does Base64 encoding on the data written to it, writing the resulting data to another OutputStream.
-
-
Constructor Summary
Constructors Constructor Description Base64OutputStream(java.io.OutputStream out, int flags)Performs Base64 encoding on the data written to the stream, writing the encoded data to another OutputStream.Base64OutputStream(java.io.OutputStream out, int flags, boolean encode)Performs Base64 encoding or decoding on the data written to the stream, writing the encoded/decoded data to another OutputStream.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidwrite(byte[] b, int off, int len)voidwrite(int b)
-
-
-
Constructor Detail
-
Base64OutputStream
public Base64OutputStream(java.io.OutputStream out, int flags)Performs Base64 encoding on the data written to the stream, writing the encoded data to another OutputStream.- Parameters:
out- the OutputStream to write the encoded data toflags- bit flags for controlling the encoder; see the constants inBase64
-
Base64OutputStream
public Base64OutputStream(java.io.OutputStream out, int flags, boolean encode)Performs Base64 encoding or decoding on the data written to the stream, writing the encoded/decoded data to another OutputStream.- Parameters:
out- the OutputStream to write the encoded data toflags- bit flags for controlling the encoder; see the constants inBase64encode- true to encode, false to decode
-
-
Method Detail
-
write
public void write(int b) throws java.io.IOException- Overrides:
writein classjava.io.FilterOutputStream- Throws:
java.io.IOException
-
write
public void write(byte[] b, int off, int len) throws java.io.IOException- Overrides:
writein classjava.io.FilterOutputStream- Throws:
java.io.IOException
-
close
public void close() throws java.io.IOException- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Overrides:
closein classjava.io.FilterOutputStream- Throws:
java.io.IOException
-
-