Skip to content

Most visited

Recently visited

navigation
Added in API level 8

Base64OutputStream

public class Base64OutputStream
extends FilterOutputStream

java.lang.Object
   ↳ java.io.OutputStream
     ↳ java.io.FilterOutputStream
       ↳ android.util.Base64OutputStream


An OutputStream that does Base64 encoding on the data written to it, writing the resulting data to another OutputStream.

Summary

Inherited fields

From class java.io.FilterOutputStream

Public constructors

Base64OutputStream(OutputStream out, int flags)

Performs Base64 encoding on the data written to the stream, writing the encoded data to another OutputStream.

Public methods

void close()

Closes this stream.

void write(byte[] b, int off, int len)

Writes count bytes from the byte array buffer starting at offset to the target stream.

void write(int b)

Writes one byte to the target stream.

Inherited methods

From class java.io.FilterOutputStream
From class java.io.OutputStream
From class java.lang.Object
From interface java.io.Closeable
From interface java.io.Flushable
From interface java.lang.AutoCloseable

Public constructors

Base64OutputStream

Added in API level 8
Base64OutputStream (OutputStream out, 
                int flags)

Performs Base64 encoding on the data written to the stream, writing the encoded data to another OutputStream.

Parameters
out OutputStream: the OutputStream to write the encoded data to
flags int: bit flags for controlling the encoder; see the constants in Base64

Public methods

close

Added in API level 8
void close ()

Closes this stream. This implementation closes the target stream.

Throws
IOException

write

Added in API level 8
void write (byte[] b, 
                int off, 
                int len)

Writes count bytes from the byte array buffer starting at offset to the target stream.

Parameters
b byte: the buffer to write.
off int: the index of the first byte in buffer to write.
len int: the number of bytes in buffer to write.
Throws
IOException

write

Added in API level 8
void write (int b)

Writes one byte to the target stream. Only the low order byte of the integer oneByte is written.

Parameters
b int: the byte to be written.
Throws
IOException
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.