English | Site Directory

Android - An Open Handset Alliance Project

android.awt
public class

android.awt.ImageOutputStreamWrapper

java.lang.Object
java.io.OutputStream Closeable Flushable
android.awt.ImageOutputStreamWrapper

Summary

Fields

protected      ImageOutputStream  mIos   

Public Constructors

          ImageOutputStreamWrapper(ImageOutputStream ios)

Public Methods

        void  close()
Close this OutputStream.
        void  flush()
Flush this OutputStream.
        ImageOutputStream  getImageOutputStream()
        void  write(byte[] b)
Writes the entire contents of the byte array buffer to this OutputStream.
        void  write(int oneByte)
Writes the specified byte oneByte to this OutputStream.
        void  write(byte[] b, int off, int len)
Writes count bytes from the byte array buffer starting at offset to this OutputStream.
Methods inherited from class java.io.OutputStream
Methods inherited from class java.lang.Object
Methods inherited from interface java.io.Closeable
Methods inherited from interface java.io.Flushable

Details

Fields

protected ImageOutputStream mIos

Public Constructors

public ImageOutputStreamWrapper(ImageOutputStream ios)

Public Methods

public void close()

Close this OutputStream. Concrete implementations of this class should free any resources during close. This implementation does nothing.

Throws

IOException

public void flush()

Flush this OutputStream. Concrete implementations of this class should ensure any pending writes to the underlying stream are written out when this method is envoked. This implementation does nothing.

Throws

IOException

public ImageOutputStream getImageOutputStream()

public void write(byte[] b)

Writes the entire contents of the byte array buffer to this OutputStream.

Parameters

b the buffer to be written

Throws

IOException

public void write(int oneByte)

Writes the specified byte oneByte to this OutputStream. Only the low order byte of oneByte is written.

Parameters

oneByte the byte to be written

Throws

IOException

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

Writes count bytes from the byte array buffer starting at offset to this OutputStream.

Parameters

b the buffer to be written
off offset in buffer to get bytes
len number of bytes in buffer to write

Throws

IOException
Build m5-rc15i - 10 Jun 2008 13:54