org.apache.batik.ext.awt.image.codec.util
public class SeekableOutputStream extends OutputStream
OutputStream
which can seek to an arbitrary offset.
Constructor Summary | |
---|---|
SeekableOutputStream(RandomAccessFile file)
Constructs a SeekableOutputStream from a
RandomAccessFile . |
Method Summary | |
---|---|
void | close() |
void | flush()
Invokes getFD().sync() on the underlying
RandomAccessFile . |
long | getFilePointer() |
void | seek(long pos) |
void | write(int b) |
void | write(byte[] b) |
void | write(byte[] b, int off, int len) |
SeekableOutputStream
from a
RandomAccessFile
. Unless otherwise indicated,
all method invocations are fowarded to the underlying
RandomAccessFile
.
Parameters: file The RandomAccessFile
to which calls
will be forwarded.
Throws: IllegalArgumentException if file
is
null
.
getFD().sync()
on the underlying
RandomAccessFile
.