Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
public interface ImageOutputStream
extends ImageInputStream, DataOutput
ImageWriters
.
Method Summary | |
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
Methods inherited from interface java.io.DataInput | |
readBoolean , readByte , readChar , readDouble , readFloat , readFully , readFully , readInt , readLine , readLong , readShort , readUTF , readUnsignedByte , readUnsignedShort , skipBytes |
Methods inherited from interface java.io.DataOutput | |
write , write , write , writeBoolean , writeByte , writeBytes , writeChar , writeChars , writeDouble , writeFloat , writeInt , writeLong , writeShort , writeUTF |
Methods inherited from interface javax.imageio.stream.ImageInputStream | |
close , flush , flushBefore , 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 , readUTF , readUnsignedByte , readUnsignedInt , readUnsignedShort , reset , seek , setBitOffset , setByteOrder , skipBytes , skipBytes |
public void flushBefore(long position) throws IOException
- Specified by:
- flushBefore in interface ImageInputStream
- Parameters:
position
-
- Throws:
IOException
- if an errror occurs
public void write(byte[] data) throws IOException
Writes an array into the stream.
- Specified by:
- write in interface DataOutput
- Parameters:
data
- the data to be written
- Throws:
IOException
- if an errror occurs
public void write(byte[] data, int offset, int len) throws IOException
Writes a region of data from an array into the stream.
- Specified by:
- write in interface DataOutput
- Parameters:
data
- the data to be writtenoffset
- the offset in the arraylen
- the length in the array
- Throws:
IOException
- if an errror occurs
public void write(int data) throws IOException
Writes anint
into the stream.
- Specified by:
- write in interface DataOutput
- Parameters:
data
- the data to be written
- Throws:
IOException
- if an errror occurs
public void writeBit(int bit) throws IOException
Writes a bit value to the stream.
- Throws:
IOException
- if an error occurs
public void writeBits(long bits, int numBits) throws IOException
Writes a number of bit values to the stream.
- Throws:
IOException
- if an errror occurs
public void writeBoolean(boolean data) throws IOException
Writes aboolean
value into the stream.
- Specified by:
- writeBoolean in interface DataOutput
- Parameters:
data
- the data to be written
- Throws:
IOException
- if an errror occurs
public void writeByte(int data) throws IOException
Writes abyte
value into the stream.
- Specified by:
- writeByte in interface DataOutput
- Parameters:
data
- the data to be written
- Throws:
IOException
- if an errror occurs
public void writeBytes(String data) throws IOException
- Specified by:
- writeBytes in interface DataOutput
- Parameters:
data
- the data to be written
- Throws:
IOException
- if an errror occurs
public void writeChar(int data) throws IOException
Writes a character into the stream.
- Specified by:
- writeChar in interface DataOutput
- Parameters:
data
- the data to be written
- Throws:
IOException
- if an errror occurs
public void writeChars(char[] data, int offset, int len) throws IOException
Writes characters to the stream.
- Parameters:
data
- the data to be writtenoffset
- the offset in the arraylen
- the lenth in the array
- Throws:
IOException
- if an errror occurs
public void writeChars(String data) throws IOException
Writes characters from a givenString
into the stream.
- Specified by:
- writeChars in interface DataOutput
- Parameters:
data
- the data to be written
- Throws:
IOException
- if an errror occurs
public void writeDouble(double data) throws IOException
Writes adouble
into the stream.
- Specified by:
- writeDouble in interface DataOutput
- Parameters:
data
- the data to be written
- Throws:
IOException
- if an errror occurs
public void writeDoubles(double[] data, int offset, int len) throws IOException
Writes an array ofdouble
into the stream.
- Parameters:
data
- the data to be writtenoffset
- the offset in the arraylen
- the lenth in the array
- Throws:
IOException
- if an errror occurs
public void writeFloat(float data) throws IOException
Writes afloat
into the stream.
- Specified by:
- writeFloat in interface DataOutput
- Parameters:
data
- the data to be written
- Throws:
IOException
- if an errror occurs
public void writeFloats(float[] data, int offset, int len) throws IOException
Writes an array offloat
into the stream.
- Parameters:
data
- the data to be writtenoffset
- the offset in the arraylen
- the lenth in the array
- Throws:
IOException
- if an errror occurs
public void writeInt(int data) throws IOException
Writes aint
into the stream.
- Specified by:
- writeInt in interface DataOutput
- Parameters:
data
- the data to be written
- Throws:
IOException
- if an errror occurs
public void writeInts(int[] data, int offset, int len) throws IOException
Writes an array ofint
into the stream.
- Parameters:
data
- the data to be writtenoffset
- the offset in the arraylen
- the lenth in the array
- Throws:
IOException
- if an errror occurs
public void writeLong(long data) throws IOException
Writes along
into the stream.
- Specified by:
- writeLong in interface DataOutput
- Parameters:
data
- the data to be written
- Throws:
IOException
- if an errror occurs
public void writeLongs(long[] data, int offset, int len) throws IOException
Writes an array oflong
into the stream.
- Parameters:
data
- the data to be writtenoffset
- the offset in the arraylen
- the lenth in the array
- Throws:
IOException
- if an errror occurs
public void writeShort(int data) throws IOException
Writes ashort
into the stream.
- Specified by:
- writeShort in interface DataOutput
- Parameters:
data
- the data to be written
- Throws:
IOException
- if an errror occurs
public void writeShorts(short[] data, int offset, int len) throws IOException
Writes an array ofshort
into the stream.
- Parameters:
data
- the data to be writtenoffset
- the offset in the arraylen
- the lenth in the array
- Throws:
IOException
- if an errror occurs
public void writeUTF(String data) throws IOException
Writes aString
into the stream.
- Specified by:
- writeUTF in interface DataOutput
- Parameters:
data
- the data to be written
- Throws:
IOException
- if an errror occurs