public abstract class DelegatingPositionOutputStream extends PositionOutputStream
| Constructor and Description |
|---|
DelegatingPositionOutputStream(OutputStream stream) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
flush() |
abstract long |
getPos()
Reports the current position of this output stream.
|
OutputStream |
getStream() |
void |
write(byte[] b) |
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
public DelegatingPositionOutputStream(OutputStream stream)
public OutputStream getStream()
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class OutputStreamIOExceptionpublic void flush()
throws IOException
flush in interface Flushableflush in class OutputStreamIOExceptionpublic abstract long getPos()
throws IOException
PositionOutputStreamgetPos in class PositionOutputStreamIOException - when the underlying stream throws IOExceptionpublic void write(int b)
throws IOException
write in class OutputStreamIOExceptionpublic void write(byte[] b)
throws IOException
write in class OutputStreamIOExceptionpublic void write(byte[] b,
int off,
int len)
throws IOException
write in class OutputStreamIOExceptionCopyright © 2018 The Apache Software Foundation. All rights reserved.