Spec-Zone .ru
спецификации, руководства, описания, API
|
CONTENTS | PREV | NEXT |
javax.imageio.stream
package are able to create
ImageInputStream
s and ImageOutputStream
s
that:
File
InputStream
, using a temporary File
as a
cacheInputStream
, using a byte array in memory as a
cacheFile
OutputStream
, using a temporary File
as a
cacheOutputStream
, using a byte array in memory as a
cacheImageInputStream
and
InmageOutputStream that interface with other I/O primitives (for
example, databases or future fast I/O interfaces). The
ImageInputStreamImpl
and
ImageOutputStreamImpl
classes provide a base for
subclassing. Only a handful of methods are required to be
implemented by the subclass, although it is possible to implement
more for greater efficiency:
int
read()
int
read(byte[] b, int off, int len)
write(int
b)
write(byte[]
b, int off, int len)
seek(long
pos)