LocationAware
, Closeable
, Flushable
, AutoCloseable
public final class PositionalOutputStream extends OutputStream implements LocationAware
Constructor | Description |
---|---|
PositionalOutputStream(OutputStream out) |
Modifier and Type | Method | Description |
---|---|---|
void |
close() |
|
long |
getPosition() |
The current offset, in bytes, of this stream/writer/file.
|
void |
write(byte[] bytes) |
|
void |
write(byte[] bytes,
int startIndex,
int numBytes) |
|
void |
write(int c) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
flush
public PositionalOutputStream(OutputStream out)
public final void write(byte[] bytes) throws IOException
write
in class OutputStream
IOException
public final void write(byte[] bytes, int startIndex, int numBytes) throws IOException
write
in class OutputStream
IOException
public final void write(int c) throws IOException
write
in class OutputStream
IOException
public final long getPosition()
LocationAware
getPosition
in interface LocationAware
public void close() throws IOException
close
in interface AutoCloseable
close
in interface Closeable
close
in class OutputStream
IOException