FileDocCategorySizeDatePackage
ImageOutputStream.javaAPI DocAndroid 1.5 API9250Wed May 06 22:41:54 BST 2009javax.imageio.stream

ImageOutputStream

public interface ImageOutputStream implements DataOutput, ImageInputStream
The ImageOutputStream represents output stream interface that is used by ImageWriters.
since
Android 1.0

Fields Summary
Constructors Summary
Methods Summary
public voidflushBefore(long pos)
Flushes the initial position in this stream prior to the specified stream position.

param
pos the position.
throws
IOException if an I/O exception has occurred.

public voidwrite(int b)
Writes a single byte to the stream at the current position.

param
b the integer value, of which the 8 lowest bits will be written.
throws
IOException if an I/O exception has occurred.

public voidwrite(byte[] b)
Writes the bytes array to the stream.

param
b the byte array to be written.
throws
IOException if an I/O exception has occurred.

public voidwrite(byte[] b, int off, int len)
Writes a number of bytes from the specified byte array beginning from the specified offset.

param
b the byte array.
param
off the offset.
param
len the number of bytes to be written.
throws
IOException if an I/O exception has occurred.

public voidwriteBit(int bit)
Writes a single bit at the current position.

param
bit the integer whose least significant bit is to be written to the stream.
throws
IOException if an I/O exception has occurred.

public voidwriteBits(long bits, int numBits)
Writes a sequence of bits beginning from the current position.

param
bits the long value containing the bits to be written, starting with the bit in position numBits - 1 down to the least significant bit.
param
numBits the number of significant bit, it can be between 0 and 64.
throws
IOException if an I/O exception has occurred.

public voidwriteBoolean(boolean b)
Writes the specified boolean value to the stream, 1 if it is true, 0 if it is false.

param
b the boolean value to be written.
throws
IOException if an I/O exception has occurred.

public voidwriteByte(int b)
Writes the 8 lowest bits of the specified integer value to the stream.

param
b the specified integer value.
throws
IOException if an I/O exception has occurred.

public voidwriteBytes(java.lang.String s)
Writes the specified string to the stream.

param
s the string to be written.
throws
IOException if an I/O exception has occurred.

public voidwriteChar(int v)
Writes the 16 lowest bits of the specified integer value to the stream.

param
v the specified integer value.
throws
IOException if an I/O exception has occurred.

public voidwriteChars(java.lang.String s)
Writes the specified String to the output stream.

param
s the String to be written.
throws
IOException if an I/O exception has occurred.

public voidwriteChars(char[] c, int off, int len)
Writes a len number of chars to the stream.

param
c the char array to be written.
param
off the offset in the char array.
param
len the length of chars to be written.
throws
IOException if an I/O exception has occurred.

public voidwriteDouble(double v)
Writes a double value to the output stream.

param
v the double which contains value to be written.
throws
IOException if an I/O exception has occurred.

public voidwriteDoubles(double[] d, int off, int len)
Writes a len number of double values from the specified array to the stream.

param
d the double array to be written.
param
off the offset in the char array.
param
len the length of chars to be written.
throws
IOException if an I/O exception has occurred.

public voidwriteFloat(float v)
Writes a float value to the output stream.

param
v the float which contains value to be written.
throws
IOException if an I/O exception has occurred.

public voidwriteFloats(float[] f, int off, int len)
Writes a len number of float values from the specified array to the stream.

param
f the float array to be written.
param
off the offset in the char array.
param
len the length of chars to be written.
throws
IOException if an I/O exception has occurred.

public voidwriteInt(int v)
Writes an integer value to the output stream.

param
v the integer value to be written.
throws
IOException if an I/O exception has occurred.

public voidwriteInts(int[] i, int off, int len)
Writes a len number of integer values from the specified array to the stream.

param
i the integer array to be written.
param
off the offset in the char array.
param
len the length of chars to be written.
throws
IOException if an I/O exception has occurred.

public voidwriteLong(long v)
Write long.

param
v the long value.
throws
IOException if an I/O exception has occurred.

public voidwriteLongs(long[] l, int off, int len)
Writes a len number of long values from the specified array to the stream.

param
l the long array to be written.
param
off the offset in the char array.
param
len the length of chars to be written.
throws
IOException if an I/O exception has occurred.

public voidwriteShort(int v)
Writes a short value to the output stream.

param
v the short value to be written.
throws
IOException if an I/O exception has occurred.

public voidwriteShorts(short[] s, int off, int len)
Writes a len number of short values from the specified array to the stream.

param
s the shorts array to be written.
param
off the offset in the char array.
param
len the length of chars to be written.
throws
IOException if an I/O exception has occurred.

public voidwriteUTF(java.lang.String s)
Writes 2 bytes to the output stream in the modified UTF-8 representation of every character of the specified string.

param
s the specified string to be written.
throws
IOException if an I/O exception has occurred.