public abstract class SeekableOutputStream extends OutputStream
| Constructor and Description |
|---|
SeekableOutputStream() |
| Modifier and Type | Method and Description |
|---|---|
abstract long |
getFilePointer()
Returns the current offset in this file.
|
abstract long |
length()
Returns the length of the stream.
|
abstract void |
reset()
Clears the stream.
|
abstract void |
seek(long pos)
Sets the file-pointer offset, measured from the beginning of this file, at which the next write occurs.
|
abstract void |
write(int b) |
close, flush, write, writepublic abstract void write(int b)
throws IOException
write in class OutputStreamIOExceptionpublic abstract long getFilePointer()
throws IOException
IOException - if an I/O error occurs.public abstract void seek(long pos)
throws IOException
pos - - the offset position, measured in bytes from the beginning of the file, at which to set the file
pointer.IOException - if pos is less than 0 or if an I/O error occurs.public abstract void reset()
throws IOException
flush after a reset will clear the contents of the file.IOExceptionpublic abstract long length()
throws IOException
IOExceptionCopyright © 2015–2024. All rights reserved.