ImageWriter
s. Various output destinations, such as OutputStream
s and File
s, as well as future fast I/O destinations may be "wrapped" by a suitable implementation of this interface for use by the Image I/O API. Unlike a standard OutputStream
, ImageOutputStream extends its counterpart, ImageInputStream
. Thus it is possible to read from the stream as it is being written. The same seek and flush positions apply to both reading and writing, although the semantics for dealing with a non-zero bit offset before a byte-aligned write are necessarily different from the semantics for dealing with a non-zero bit offset before a byte-aligned read. When reading bytes, any bit offset is set to 0 before the read; when writing bytes, a non-zero bit offset causes the remaining bits in the byte to be written as 0s. The byte-aligned write then starts at the next byte position.
@see ImageInputStream
ImageWriter
s. Various output destinations, such as OutputStream
s and File
s, as well as future fast I/O destinations may be "wrapped" by a suitable implementation of this interface for use by the Image I/O API. Unlike a standard OutputStream
, ImageOutputStream extends its counterpart, ImageInputStream
. Thus it is possible to read from the stream as it is being written. The same seek and flush positions apply to both reading and writing, although the semantics for dealing with a non-zero bit offset before a byte-aligned write are necessarily different from the semantics for dealing with a non-zero bit offset before a byte-aligned read. When reading bytes, any bit offset is set to 0 before the read; when writing bytes, a non-zero bit offset causes the remaining bits in the byte to be written as 0s. The byte-aligned write then starts at the next byte position.
@see ImageInputStream
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|