public interface ImageOutputStream extends ImageInputStream, java.io.DataOutput
ImageWriters.| Modifier and Type | Method and Description |
|---|---|
void |
flushBefore(long position) |
void |
write(byte[] data)
Writes an array into the stream.
|
void |
write(byte[] data,
int offset,
int len)
Writes a region of data from an array into the stream.
|
void |
write(int data)
Writes an
int into the stream. |
void |
writeBit(int bit)
Writes a bit value to the stream.
|
void |
writeBits(long bits,
int numBits)
Writes a number of bit values to the stream.
|
void |
writeBoolean(boolean data)
Writes a
boolean value into the stream. |
void |
writeByte(int data)
Writes a
byte value into the stream. |
void |
writeBytes(java.lang.String data)
This method writes all the bytes in a
String out to the
stream. |
void |
writeChar(int data)
Writes a character into the stream.
|
void |
writeChars(char[] data,
int offset,
int len)
Writes characters to the stream.
|
void |
writeChars(java.lang.String data)
Writes characters from a given
String into the stream. |
void |
writeDouble(double data)
Writes a
double into the stream. |
void |
writeDoubles(double[] data,
int offset,
int len)
Writes an array of
double into the stream. |
void |
writeFloat(float data)
Writes a
float into the stream. |
void |
writeFloats(float[] data,
int offset,
int len)
Writes an array of
float into the stream. |
void |
writeInt(int data)
Writes a
int into the stream. |
void |
writeInts(int[] data,
int offset,
int len)
Writes an array of
int into the stream. |
void |
writeLong(long data)
Writes a
long into the stream. |
void |
writeLongs(long[] data,
int offset,
int len)
Writes an array of
long into the stream. |
void |
writeShort(int data)
Writes a
short into the stream. |
void |
writeShorts(short[] data,
int offset,
int len)
Writes an array of
short into the stream. |
void |
writeUTF(java.lang.String data)
Writes a
String into the stream. |
close, flush, getBitOffset, getByteOrder, getFlushedPosition, getStreamPosition, isCached, isCachedFile, isCachedMemory, length, mark, read, read, read, readBit, readBits, readBoolean, readByte, readBytes, readChar, readDouble, readFloat, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedInt, readUnsignedShort, readUTF, reset, seek, setBitOffset, setByteOrder, skipBytes, skipBytesvoid flushBefore(long position) throws java.io.IOException
flushBefore in interface ImageInputStreamposition - java.io.IOException - if an errror occursvoid write(byte[] data) throws java.io.IOException
write in interface java.io.DataOutputdata - the data to be writtenjava.io.IOException - if an errror occursvoid write(byte[] data, int offset, int len) throws java.io.IOException
write in interface java.io.DataOutputdata - the data to be writtenoffset - the offset in the arraylen - the length in the arrayjava.io.IOException - if an errror occursvoid write(int data) throws java.io.IOException
int into the stream.write in interface java.io.DataOutputdata - the data to be writtenjava.io.IOException - if an errror occursvoid writeBit(int bit) throws java.io.IOException
java.io.IOException - if an error occursvoid writeBits(long bits, int numBits) throws java.io.IOException
java.io.IOException - if an errror occursvoid writeBoolean(boolean data) throws java.io.IOException
boolean value into the stream.writeBoolean in interface java.io.DataOutputdata - the data to be writtenjava.io.IOException - if an errror occursDataInput.readBoolean()void writeByte(int data) throws java.io.IOException
byte value into the stream.writeByte in interface java.io.DataOutputdata - the data to be writtenjava.io.IOException - if an errror occursDataInput.readByte(),
DataInput.readUnsignedByte()void writeBytes(java.lang.String data) throws java.io.IOException
java.io.DataOutputString out to the
stream. One byte is written for each character in the
String.
The high eight bits of each character are discarded, thus this
method is inappropriate for completely representing Unicode characters.writeBytes in interface java.io.DataOutputdata - the data to be writtenjava.io.IOException - if an errror occursvoid writeChar(int data) throws java.io.IOException
writeChar in interface java.io.DataOutputdata - the data to be writtenjava.io.IOException - if an errror occursDataInput.readChar()void writeChars(char[] data, int offset, int len) throws java.io.IOException
data - the data to be writtenoffset - the offset in the arraylen - the lenth in the arrayjava.io.IOException - if an errror occursvoid writeChars(java.lang.String data) throws java.io.IOException
String into the stream.writeChars in interface java.io.DataOutputdata - the data to be writtenjava.io.IOException - if an errror occursDataOutput.writeChar(int)void writeDouble(double data) throws java.io.IOException
double into the stream.writeDouble in interface java.io.DataOutputdata - the data to be writtenjava.io.IOException - if an errror occursDataOutput.writeLong(long),
DataInput.readDouble(),
Double.doubleToLongBits(double)void writeDoubles(double[] data, int offset, int len) throws java.io.IOException
double into the stream.data - the data to be writtenoffset - the offset in the arraylen - the lenth in the arrayjava.io.IOException - if an errror occursvoid writeFloat(float data) throws java.io.IOException
float into the stream.writeFloat in interface java.io.DataOutputdata - the data to be writtenjava.io.IOException - if an errror occursDataOutput.writeInt(int),
DataInput.readFloat(),
Float.floatToIntBits(float)void writeFloats(float[] data, int offset, int len) throws java.io.IOException
float into the stream.data - the data to be writtenoffset - the offset in the arraylen - the lenth in the arrayjava.io.IOException - if an errror occursvoid writeInt(int data) throws java.io.IOException
int into the stream.writeInt in interface java.io.DataOutputdata - the data to be writtenjava.io.IOException - if an errror occursDataInput.readInt()void writeInts(int[] data, int offset, int len) throws java.io.IOException
int into the stream.data - the data to be writtenoffset - the offset in the arraylen - the lenth in the arrayjava.io.IOException - if an errror occursvoid writeLong(long data) throws java.io.IOException
long into the stream.writeLong in interface java.io.DataOutputdata - the data to be writtenjava.io.IOException - if an errror occursDataInput.readLong()void writeLongs(long[] data, int offset, int len) throws java.io.IOException
long into the stream.data - the data to be writtenoffset - the offset in the arraylen - the lenth in the arrayjava.io.IOException - if an errror occursvoid writeShort(int data) throws java.io.IOException
short into the stream.writeShort in interface java.io.DataOutputdata - the data to be writtenjava.io.IOException - if an errror occursDataInput.readShort(),
DataInput.readUnsignedShort()void writeShorts(short[] data, int offset, int len) throws java.io.IOException
short into the stream.data - the data to be writtenoffset - the offset in the arraylen - the lenth in the arrayjava.io.IOException - if an errror occursvoid writeUTF(java.lang.String data) throws java.io.IOException
String into the stream.writeUTF in interface java.io.DataOutputdata - the data to be writtenjava.io.IOException - if an errror occursDataInput.readUTF()