LocationAware, Closeable, Flushable, AutoCloseablepublic 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, waitflushpublic PositionalOutputStream(OutputStream out)
public final void write(byte[] bytes)
throws IOException
write in class OutputStreamIOExceptionpublic final void write(byte[] bytes,
int startIndex,
int numBytes)
throws IOException
write in class OutputStreamIOExceptionpublic final void write(int c)
throws IOException
write in class OutputStreamIOExceptionpublic final long getPosition()
LocationAwaregetPosition in interface LocationAwarepublic void close()
throws IOException
close in interface AutoCloseableclose in interface Closeableclose in class OutputStreamIOException