javax.imageio.stream

Interface ImageOutputStream

public interface ImageOutputStream extends ImageInputStream, DataOutput

An output stream for use by {@link javax.imageio.ImageWriter ImageWriters}.

Since: 1.4

Method Summary
voidflushBefore(long position)
voidwrite(byte[] data)
Writes an array into the stream.
voidwrite(byte[] data, int offset, int len)
Writes a region of data from an array into the stream.
voidwrite(int data)
Writes an int into the stream.
voidwriteBit(int bit)
Writes a bit value to the stream.
voidwriteBits(long bits, int numBits)
Writes a number of bit values to the stream.
voidwriteBoolean(boolean data)
Writes a boolean value into the stream.
voidwriteByte(int data)
Writes a byte value into the stream.
voidwriteBytes(String data)
voidwriteChar(int data)
Writes a character into the stream.
voidwriteChars(char[] data, int offset, int len)
Writes characters to the stream.
voidwriteChars(String data)
Writes characters from a given String into the stream.
voidwriteDouble(double data)
Writes a double into the stream.
voidwriteDoubles(double[] data, int offset, int len)
Writes an array of double into the stream.
voidwriteFloat(float data)
Writes a float into the stream.
voidwriteFloats(float[] data, int offset, int len)
Writes an array of float into the stream.
voidwriteInt(int data)
Writes a int into the stream.
voidwriteInts(int[] data, int offset, int len)
Writes an array of int into the stream.
voidwriteLong(long data)
Writes a long into the stream.
voidwriteLongs(long[] data, int offset, int len)
Writes an array of long into the stream.
voidwriteShort(int data)
Writes a short into the stream.
voidwriteShorts(short[] data, int offset, int len)
Writes an array of short into the stream.
voidwriteUTF(String data)
Writes a String into the stream.

Method Detail

flushBefore

public void flushBefore(long position)

Parameters: position

Throws: IOException if an errror occurs

write

public void write(byte[] data)
Writes an array into the stream.

Parameters: data the data to be written

Throws: IOException if an errror occurs

write

public void write(byte[] data, int offset, int len)
Writes a region of data from an array into the stream.

Parameters: data the data to be written offset the offset in the array len the length in the array

Throws: IOException if an errror occurs

write

public void write(int data)
Writes an int into the stream.

Parameters: data the data to be written

Throws: IOException if an errror occurs

writeBit

public void writeBit(int bit)
Writes a bit value to the stream.

Throws: IOException if an error occurs

writeBits

public void writeBits(long bits, int numBits)
Writes a number of bit values to the stream.

Throws: IOException if an errror occurs

writeBoolean

public void writeBoolean(boolean data)
Writes a boolean value into the stream.

Parameters: data the data to be written

Throws: IOException if an errror occurs

writeByte

public void writeByte(int data)
Writes a byte value into the stream.

Parameters: data the data to be written

Throws: IOException if an errror occurs

writeBytes

public void writeBytes(String data)

Parameters: data the data to be written

Throws: IOException if an errror occurs

writeChar

public void writeChar(int data)
Writes a character into the stream.

Parameters: data the data to be written

Throws: IOException if an errror occurs

writeChars

public void writeChars(char[] data, int offset, int len)
Writes characters to the stream.

Parameters: data the data to be written offset the offset in the array len the lenth in the array

Throws: IOException if an errror occurs

writeChars

public void writeChars(String data)
Writes characters from a given String into the stream.

Parameters: data the data to be written

Throws: IOException if an errror occurs

writeDouble

public void writeDouble(double data)
Writes a double into the stream.

Parameters: data the data to be written

Throws: IOException if an errror occurs

writeDoubles

public void writeDoubles(double[] data, int offset, int len)
Writes an array of double into the stream.

Parameters: data the data to be written offset the offset in the array len the lenth in the array

Throws: IOException if an errror occurs

writeFloat

public void writeFloat(float data)
Writes a float into the stream.

Parameters: data the data to be written

Throws: IOException if an errror occurs

writeFloats

public void writeFloats(float[] data, int offset, int len)
Writes an array of float into the stream.

Parameters: data the data to be written offset the offset in the array len the lenth in the array

Throws: IOException if an errror occurs

writeInt

public void writeInt(int data)
Writes a int into the stream.

Parameters: data the data to be written

Throws: IOException if an errror occurs

writeInts

public void writeInts(int[] data, int offset, int len)
Writes an array of int into the stream.

Parameters: data the data to be written offset the offset in the array len the lenth in the array

Throws: IOException if an errror occurs

writeLong

public void writeLong(long data)
Writes a long into the stream.

Parameters: data the data to be written

Throws: IOException if an errror occurs

writeLongs

public void writeLongs(long[] data, int offset, int len)
Writes an array of long into the stream.

Parameters: data the data to be written offset the offset in the array len the lenth in the array

Throws: IOException if an errror occurs

writeShort

public void writeShort(int data)
Writes a short into the stream.

Parameters: data the data to be written

Throws: IOException if an errror occurs

writeShorts

public void writeShorts(short[] data, int offset, int len)
Writes an array of short into the stream.

Parameters: data the data to be written offset the offset in the array len the lenth in the array

Throws: IOException if an errror occurs

writeUTF

public void writeUTF(String data)
Writes a String into the stream.

Parameters: data the data to be written

Throws: IOException if an errror occurs