Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)
Android APIs
public class

Base64OutputStream

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

Class Overview

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

Summary

[Expand]
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.
[Expand]
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

public Base64OutputStream ( OutputStream out, int flags)

Added in API level 8

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 to
flags bit flags for controlling the encoder; see the constants in Base64

Public Methods

public void close ()

Added in API level 8

Closes this stream. This implementation closes the target stream.

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

Added in API level 8

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

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

public void write (int b)

Added in API level 8

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

Parameters
b the byte to be written.