This documentation differs from the official API.
Jadeite adds
extra features to the API including:
variable font sizes,
constructions examples,
placeholders for classes and methods, and auto-generated “See Also” links.
Additionally it
is missing some items found in standard Javadoc documentation, including:
generics type information,
“Deprecated” tags and comments,
“See Also” links,
along with other minor differences.
Please send any questions or feedback to
bam@cs.cmu.edu.
javax.imageio.stream
class ImageOutputStreamImpl
- All Implemented Interfaces:
- ImageInputStream, ImageOutputStream
- Direct Known Subclasses:
- FileCacheImageOutputStream, FileImageOutputStream, MemoryCacheImageOutputStream
public abstract class ImageOutputStreamImpl
extends ImageInputStreamImpl
implements ImageOutputStream
An abstract class implementing the ImageOutputStream
interface.
This class is designed to reduce the number of methods that must
be implemented by subclasses.
Constructor Summary |
Constructs an ImageOutputStreamImpl .
|
Method Summary |
protected void |
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 |
|
abstract void |
write(byte[] b, int off, int len)
|
abstract void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
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, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ImageOutputStreamImpl
public ImageOutputStreamImpl()
-
Constructs an
ImageOutputStreamImpl
.
flushBits
protected final void flushBits()
throws IOException
-
If the bit offset is non-zero, forces the remaining bits
in the current byte to 0 and advances the stream position
by one. This method should be called by subclasses at the
beginning of the
write(int)
and
write(byte[], int, int)
methods.
- Throws:
IOException
- if an I/O error occurs.
write
public void write(byte[] b)
throws IOException
-
- Parameters:
b
- Throws:
IOException
write
public abstract void write(byte[] b,
int off,
int len)
throws IOException
-
- Parameters:
b
off
len
- Throws:
IOException
write
public abstract void write(int b)
throws IOException
-
- Parameters:
b
- Throws:
IOException
writeBit
public void writeBit(int bit)
throws IOException
-
- Parameters:
bit
- Throws:
IOException
writeBits
public void writeBits(long bits,
int numBits)
throws IOException
-
- Parameters:
bits
numBits
- Throws:
IOException
writeBoolean
public void writeBoolean(boolean v)
throws IOException
-
- Parameters:
v
- Throws:
IOException
writeByte
public void writeByte(int v)
throws IOException
-
- Parameters:
v
- Throws:
IOException
writeBytes
public void writeBytes(String s)
throws IOException
-
- Parameters:
s
- Throws:
IOException
writeChar
public void writeChar(int v)
throws IOException
-
- Parameters:
v
- Throws:
IOException
writeChars
public void writeChars(char[] c,
int off,
int len)
throws IOException
-
- Parameters:
c
off
len
- Throws:
IOException
writeChars
public void writeChars(String s)
throws IOException
-
- Parameters:
s
- Throws:
IOException
writeDouble
public void writeDouble(double v)
throws IOException
-
- Parameters:
v
- Throws:
IOException
writeDoubles
public void writeDoubles(double[] d,
int off,
int len)
throws IOException
-
- Parameters:
d
off
len
- Throws:
IOException
writeFloat
public void writeFloat(float v)
throws IOException
-
- Parameters:
v
- Throws:
IOException
writeFloats
public void writeFloats(float[] f,
int off,
int len)
throws IOException
-
- Parameters:
f
off
len
- Throws:
IOException
writeInt
public void writeInt(int v)
throws IOException
-
- Parameters:
v
- Throws:
IOException
writeInts
public void writeInts(int[] i,
int off,
int len)
throws IOException
-
- Parameters:
i
off
len
- Throws:
IOException
writeLong
public void writeLong(long v)
throws IOException
-
- Parameters:
v
- Throws:
IOException
writeLongs
public void writeLongs(long[] l,
int off,
int len)
throws IOException
-
- Parameters:
l
off
len
- Throws:
IOException
writeShort
public void writeShort(int v)
throws IOException
-
- Parameters:
v
- Throws:
IOException
writeShorts
public void writeShorts(short[] s,
int off,
int len)
throws IOException
-
- Parameters:
s
off
len
- Throws:
IOException
writeUTF
public void writeUTF(String s)
throws IOException
-
- Parameters:
s
- Throws:
IOException
This documentation differs from the official API.
Jadeite adds
extra features to the API including:
variable font sizes,
constructions examples,
placeholders for classes and methods, and auto-generated “See Also” links.
Additionally it
is missing some items found in standard Javadoc documentation, including:
generics type information,
“Deprecated” tags and comments,
“See Also” links,
along with other minor differences.
Please send any questions or feedback to
bam@cs.cmu.edu.
This page displays the
Jadeite version of the documention, which is derived from the offical documentation that contains this copyright notice:
The official Sun™ documentation can be found here at
http://java.sun.com/javase/6/docs/api/.