public final class PositionalOutputStream extends java.io.OutputStream implements LocationAware
| Constructor and Description |
|---|
PositionalOutputStream(java.io.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) |
public final void write(byte[] bytes)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOExceptionpublic final void write(byte[] bytes,
int startIndex,
int numBytes)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOExceptionpublic final void write(int c)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOExceptionpublic final long getPosition()
LocationAwaregetPosition in interface LocationAwarepublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.OutputStreamjava.io.IOException