FileDocCategorySizeDatePackage
ImageOutputStreamWrapper.javaAPI DocAndroid 1.5 API1704Wed May 06 22:41:54 BST 2009com.android.internal.awt

ImageOutputStreamWrapper

public class ImageOutputStreamWrapper extends OutputStream

Fields Summary
protected ImageOutputStream
mIos
private byte[]
mBuff
Constructors Summary
public ImageOutputStreamWrapper(ImageOutputStream ios)

		if (null == ios) {
			throw new IllegalArgumentException("ImageOutputStream must not be null");
		}
		this.mIos = ios;
		this.mBuff = new byte[1];
	
Methods Summary
public voidclose()

    	if (mIos == null) {
    		throw new IOException("Stream already closed");
    	}
        mIos = null;
    
public voidflush()

		mIos.flush();
	
public javax.imageio.stream.ImageOutputStreamgetImageOutputStream()

		return mIos;
	
public voidwrite(int oneByte)

		mBuff[0] = (byte)oneByte;
		mIos.write(mBuff, 0, 1);
	
public voidwrite(byte[] b)

		mIos.write(b, 0, b.length);
	
public voidwrite(byte[] b, int off, int len)

		mIos.write(b, off, len);