public final class PositionalOutputStream extends OutputStream implements LocationAware
| Constructor and Description |
|---|
PositionalOutputStream(OutputStream out) |
| Modifier and Type | Method and 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) |
flushpublic 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 Closeableclose in interface AutoCloseableclose in class OutputStreamIOException