Class SeekableOutputStream
java.lang.Object
java.io.OutputStream
org.apache.batik.ext.awt.image.codec.util.SeekableOutputStream
- All Implemented Interfaces:
Closeable, Flushable, AutoCloseable
An
OutputStream which can seek to an arbitrary offset.-
Constructor Summary
ConstructorsConstructorDescriptionConstructs aSeekableOutputStreamfrom aRandomAccessFile. -
Method Summary
Methods inherited from class OutputStream
nullOutputStream
-
Constructor Details
-
SeekableOutputStream
Constructs aSeekableOutputStreamfrom aRandomAccessFile. Unless otherwise indicated, all method invocations are fowarded to the underlyingRandomAccessFile.- Parameters:
file- TheRandomAccessFileto which calls will be forwarded.- Throws:
IllegalArgumentException- iffileisnull.
-
-
Method Details
-
write
- Specified by:
writein classOutputStream- Throws:
IOException
-
write
- Overrides:
writein classOutputStream- Throws:
IOException
-
write
- Overrides:
writein classOutputStream- Throws:
IOException
-
flush
InvokesgetFD().sync()on the underlyingRandomAccessFile.- Specified by:
flushin interfaceFlushable- Overrides:
flushin classOutputStream- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classOutputStream- Throws:
IOException
-
getFilePointer
- Throws:
IOException
-
seek
- Throws:
IOException
-