|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object![]()
![]()
![]()
javax.imageio.stream.ImageInputStreamImpl
![]()
![]()
![]()
javax.imageio.stream.ImageOutputStreamImpl
![]()
![]()
![]()
javax.imageio.stream.FileImageOutputStream
, DataOutput
, ImageInputStream
, ImageOutputStream

public class FileImageOutputStream

An implementation of ImageOutputStream that writes its
output directly to a File or
RandomAccessFile.
| Field Summary |
|---|
Fields inherited from class javax.imageio.stream.ImageInputStreamImpl ![]() |
|---|
bitOffset |
| Constructor Summary | |
|---|---|
FileImageOutputStream
Constructs a FileImageOutputStream that will write
to a given File. |
|
FileImageOutputStream
Constructs a FileImageOutputStream that will write
to a given RandomAccessFile. |
|
| Method Summary | |
|---|---|
void |
close
Closes the stream. |
long |
length
Returns -1L to indicate that the stream has unknown
length. |
int |
read
Reads a single byte from the stream and returns it as an integer between 0 and 255. |
int |
read
Reads up to len bytes from the stream, and stores
them into b starting at index off. |
void |
seek
Sets the current stream position and resets the bit offset to 0. |
void |
write
Writes len bytes from array
b, in order, to
the output stream. |
void |
write
Writes to the output stream the eight low-order bits of the argument b. |
Methods inherited from class javax.imageio.stream.ImageOutputStreamImpl ![]() |
|---|
flushBits |
Methods inherited from class javax.imageio.stream.ImageInputStreamImpl ![]() |
|---|
checkClosed |
Methods inherited from class java.lang.Object ![]() |
|---|
clone |
Methods inherited from interface javax.imageio.stream.ImageOutputStream ![]() |
|---|
flushBefore |
Methods inherited from interface javax.imageio.stream.ImageInputStream ![]() |
|---|
flush |
| Constructor Detail |
|---|

public FileImageOutputStream(File![]()
![]()
f) throws FileNotFoundException
![]()
![]()
, IOException
![]()
![]()
FileImageOutputStream that will write
to a given File.
f - a File to write to.
IllegalArgumentException

- if f is
null.
SecurityException

- if a security manager exists
and does not allow write access to the file.
FileNotFoundException

- if f does not denote
a regular file or it cannot be opened for reading and writing for any
other reason.
IOException

- if an I/O error occurs.

public FileImageOutputStream(RandomAccessFile![]()
![]()
raf)
FileImageOutputStream that will write
to a given RandomAccessFile.
raf - a RandomAccessFile to write to.
IllegalArgumentException

- if raf is
null.