public abstract class ImageOutputStreamImpl extends ImageInputStreamImpl implements ImageOutputStream
ImageOutputStream interface.
This class is designed to reduce the number of methods that must
be implemented by subclasses.bitOffset, byteOrder, flushedPos, streamPos| Constructor and Description |
|---|
ImageOutputStreamImpl()
Constructs an
ImageOutputStreamImpl. |
| Modifier and Type | Method and Description |
|---|---|
protected void |
flushBits()
If the bit offset is non-zero, forces the remaining bits
in the current byte to 0 and advances the stream position
by one.
|
void |
write(byte[] b)
Writes a sequence of bytes to the stream at the current
position.
|
abstract void |
write(byte[] b,
int off,
int len)
Writes a sequence of bytes to the stream at the current
position.
|
abstract void |
write(int b)
Writes a single byte to the stream at the current position.
|
void |
writeBit(int bit)
Writes a single bit, given by the least significant bit of the
argument, to the stream at the current bit offset within the
current byte position.
|
void |
writeBits(long bits,
int numBits)
Writes a sequence of bits, given by the
numBits
least significant bits of the bits argument in
left-to-right order, to the stream at the current bit offset
within the current byte position. |
void |
writeBoolean(boolean v)
Writes a
boolean value to the stream. |
void |
writeByte(int v)
Writes the 8 low-order bits of
v to the
stream. |
void |
writeBytes(String s)
Writes a string to the output stream.
|
void |
writeChar(int v)
This method is a synonym for
writeShort. |
void |
writeChars(char[] c,
int off,
int len)
Writes a sequence of chars to the stream at the current
position.
|
void |
writeChars(String s)
Writes a string to the output stream.
|
void |
writeDouble(double v)
Writes a
double value, which is comprised of four
bytes, to the output stream. |
void |
writeDoubles(double[] d,
int off,
int len)
Writes a sequence of doubles to the stream at the current
position.
|
void |
writeFloat(float v)
Writes a
float value, which is comprised of four
bytes, to the output stream. |
void |
writeFloats(float[] f,
int off,
int len)
Writes a sequence of floats to the stream at the current
position.
|
void |
writeInt(int v)
Writes the 32 bits of
v to the stream. |
void |
writeInts(int[] i,
int off,
int len)
Writes a sequence of ints to the stream at the current
position.
|
void |
writeLong(long v)
Writes the 64 bits of
v to the stream. |
void |
writeLongs(long[] l,
int off,
int len)
Writes a sequence of longs to the stream at the current
position.
|
void |
writeShort(int v)
Writes the 16 low-order bits of
v to the
stream. |
void |
writeShorts(short[] s,
int off,
int len)
Writes a sequence of shorts to the stream at the current
position.
|
void |
writeUTF(String s)
Writes two bytes of length information to the output stream in
network byte order, followed by the
Methods inherited from class javax.imageio.stream.ImageInputStreamImplcheckClosed, 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
Submit a bug or feature |