|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.imageio.stream.ImageInputStreamImpl
javax.imageio.stream.ImageOutputStreamImpl
public abstract class ImageOutputStreamImpl
| Field Summary |
|---|
| Fields inherited from class javax.imageio.stream.ImageInputStreamImpl |
|---|
bitOffset, byteOrder, flushedPos, streamPos |
| Constructor Summary | |
|---|---|
ImageOutputStreamImpl()
|
|
| Method Summary | |
|---|---|
protected void |
flushBits()
|
void |
write(byte[] data)
Writes an array into the stream. |
abstract void |
write(byte[] data,
int offset,
int len)
Writes a region of data from an array into the stream. |
abstract void |
write(int value)
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 value)
Writes a boolean value into the stream. |
void |
writeByte(int value)
Writes a byte value into the stream. |
void |
writeBytes(String data)
This method writes all the bytes in a String out to the
stream. |
void |
writeChar(int value)
Writes a character into the stream. |
void |
writeChars(char[] data,
int offset,
int len)
Writes characters to the stream. |
void |
writeChars(String data)
Writes characters from a given String into the stream. |
void |
writeDouble(double value)
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 value)
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 value)
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 value)
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 value)
Writes a short into the stream. |
void |
writeShorts(short[] data,
int offset,
int len)
Writes an array of short into the stream. |
void |
writeUTF(String value)
Writes a String into the stream. |
| Methods inherited from class javax.imageio.stream.ImageInputStreamImpl |
|---|
checkClosed, close, finalize, 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, readUnsignedByte, readUnsignedInt, readUnsignedShort, readUTF, reset, seek, setBitOffset, setByteOrder, skipBytes, skipBytes |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.imageio.stream.ImageOutputStream |
|---|
flushBefore |
| Methods inherited from interface javax.imageio.stream.ImageInputStream |
|---|
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, skipBytes |
| Constructor Detail |
|---|
public ImageOutputStreamImpl()
| Method Detail |
|---|
protected final void flushBits()
throws IOException
IOException
public void write(byte[] data)
throws IOException
ImageOutputStream
write in interface DataOutputwrite in interface ImageOutputStreamdata - the data to be written
IOException - if an errror occurs
public abstract void write(byte[] data,
int offset,
int len)
throws IOException
ImageOutputStream
write in interface DataOutputwrite in interface ImageOutputStreamdata - the data to be writtenoffset - the offset in the arraylen - the length in the array
IOException - if an errror occurs
public abstract void write(int value)
throws IOException
ImageOutputStreamint into the stream.
write in interface DataOutputwrite in interface ImageOutputStreamvalue - the data to be written
IOException - if an errror occurs
public void writeBit(int bit)
throws IOException
ImageOutputStream
writeBit in interface ImageOutputStreamIOException - if an error occurs
public void writeBits(long bits,
int numBits)
throws IOException
ImageOutputStream
writeBits in interface ImageOutputStreamIOException - if an errror occurs
public void writeBoolean(boolean value)
throws IOException
ImageOutputStreamboolean value into the stream.
writeBoolean in interface DataOutputwriteBoolean in interface ImageOutputStreamvalue - the data to be written
IOException - if an errror occursDataInput.readBoolean()
public void writeByte(int value)
throws IOException
ImageOutputStreambyte value into the stream.
writeByte in interface DataOutputwriteByte in interface ImageOutputStreamvalue - the data to be written
IOException - if an errror occursDataInput.readByte(),
DataInput.readUnsignedByte()
public void writeBytes(String data)
throws IOException
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 DataOutputwriteBytes in interface ImageOutputStreamdata - the data to be written
IOException - if an errror occurs
public void writeChar(int value)
throws IOException
ImageOutputStream
writeChar in interface DataOutputwriteChar in interface ImageOutputStreamvalue - the data to be written
IOException - if an errror occursDataInput.readChar()
public void writeChars(char[] data,
int offset,
int len)
throws IOException
ImageOutputStream
writeChars in interface ImageOutputStreamdata - the data to be writtenoffset - the offset in the arraylen - the lenth in the array
IOException - if an errror occurs
public void writeChars(String data)
throws IOException
ImageOutputStreamString into the stream.
writeChars in interface DataOutputwriteChars in interface ImageOutputStreamdata - the data to be written
IOException - if an errror occursDataOutput.writeChar(int)
public void writeDouble(double value)
throws IOException
ImageOutputStreamdouble into the stream.
writeDouble in interface DataOutputwriteDouble in interface ImageOutputStreamvalue - the data to be written
IOException - if an errror occursDataOutput.writeLong(long),
DataInput.readDouble(),
Double.doubleToLongBits(double)
public void writeDoubles(double[] data,
int offset,
int len)
throws IOException
ImageOutputStreamdouble into the stream.
writeDoubles in interface ImageOutputStreamdata - the data to be writtenoffset - the offset in the arraylen - the lenth in the array
IOException - if an errror occurs
public void writeFloat(float value)
throws IOException
ImageOutputStreamfloat into the stream.
writeFloat in interface DataOutputwriteFloat in interface ImageOutputStreamvalue - the data to be written
IOException - if an errror occursDataOutput.writeInt(int),
DataInput.readFloat(),
Float.floatToIntBits(float)
public void writeFloats(float[] data,
int offset,
int len)
throws IOException
ImageOutputStreamfloat into the stream.
writeFloats in interface ImageOutputStreamdata - the data to be writtenoffset - the offset in the arraylen - the lenth in the array
IOException - if an errror occurs
public void writeInt(int value)
throws IOException
ImageOutputStreamint into the stream.
writeInt in interface DataOutputwriteInt in interface ImageOutputStreamvalue - the data to be written
IOException - if an errror occursDataInput.readInt()
public void writeInts(int[] data,
int offset,
int len)
throws IOException
ImageOutputStreamint into the stream.
writeInts in interface ImageOutputStreamdata - the data to be writtenoffset - the offset in the arraylen - the lenth in the array
IOException - if an errror occurs
public void writeLong(long value)
throws IOException
ImageOutputStreamlong into the stream.
writeLong in interface DataOutputwriteLong in interface ImageOutputStreamvalue - the data to be written
IOException - if an errror occursDataInput.readLong()
public void writeLongs(long[] data,
int offset,
int len)
throws IOException
ImageOutputStreamlong into the stream.
writeLongs in interface ImageOutputStreamdata - the data to be writtenoffset - the offset in the arraylen - the lenth in the array
IOException - if an errror occurs
public void writeShort(int value)
throws IOException
ImageOutputStreamshort into the stream.
writeShort in interface DataOutputwriteShort in interface ImageOutputStreamvalue - the data to be written
IOException - if an errror occursDataInput.readShort(),
DataInput.readUnsignedShort()
public void writeShorts(short[] data,
int offset,
int len)
throws IOException
ImageOutputStreamshort into the stream.
writeShorts in interface ImageOutputStreamdata - the data to be writtenoffset - the offset in the arraylen - the lenth in the array
IOException - if an errror occurs
public void writeUTF(String value)
throws IOException
ImageOutputStreamString into the stream.
writeUTF in interface DataOutputwriteUTF in interface ImageOutputStreamvalue - the data to be written
IOException - if an errror occursDataInput.readUTF()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||