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.OutputStream
java.io.IOException
public final void write(byte[] bytes, int startIndex, int numBytes) throws java.io.IOException
write
in class java.io.OutputStream
java.io.IOException
public final void write(int c) throws java.io.IOException
write
in class java.io.OutputStream
java.io.IOException
public final long getPosition()
LocationAware
getPosition
in interface LocationAware
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.OutputStream
java.io.IOException