# Print output for @column tags ?> AssetFileDescriptor.AutoCloseOutputStream - Android SDK | Android Developers

Most visited


Recently visited


AssetFileDescriptor.AutoCloseOutputStream

public static class AssetFileDescriptor.AutoCloseOutputStream
extends ParcelFileDescriptor.AutoCloseOutputStream

java.lang.Object
   ↳ java.io.OutputStream
     ↳ java.io.FileOutputStream
       ↳ android.os.ParcelFileDescriptor.AutoCloseOutputStream
         ↳ android.content.res.AssetFileDescriptor.AutoCloseOutputStream


An OutputStream you can create on a ParcelFileDescriptor, which will take care of calling ParcelFileDescriptor.close() for you when the stream is closed.

Summary


Public constructors

AutoCloseOutputStream(AssetFileDescriptor fd)

Public methods

void write(byte[] buffer)

Writes b.length bytes from the specified byte array to this file output stream.

void write(byte[] buffer, int offset, int count)

Writes len bytes from the specified byte array starting at offset off to this file output stream.

void write(int oneByte)

Writes the specified byte to this file output stream.

Inherited methods

Public constructors


AutoCloseOutputStream

public AutoCloseOutputStream (AssetFileDescriptor fd)

Parameters
fd AssetFileDescriptor

Throws
IOException

Public methods


write

public void write (byte[] buffer)

Writes b.length bytes from the specified byte array to this file output stream.

Parameters
buffer byte: the data.

Throws
IOException

write

public void write (byte[] buffer, 
                int offset, 
                int count)

Writes len bytes from the specified byte array starting at offset off to this file output stream.

Parameters
buffer byte: the data.

offset int: the start offset in the data.

count int: the number of bytes to write.

Throws
IOException

write

public void write (int oneByte)

Writes the specified byte to this file output stream. Implements the write method of OutputStream.

Parameters
oneByte int: the byte to be written.

Throws
IOException