Package org.apache.parquet.io
Class DelegatingPositionOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- org.apache.parquet.io.PositionOutputStream
-
- org.apache.parquet.io.DelegatingPositionOutputStream
-
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
public abstract class DelegatingPositionOutputStream extends PositionOutputStream
-
-
Constructor Summary
Constructors Constructor Description DelegatingPositionOutputStream(OutputStream stream)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidclose()voidflush()abstract longgetPos()Reports the current position of this output stream.OutputStreamgetStream()voidwrite(byte[] b)voidwrite(byte[] b, int off, int len)voidwrite(int b)-
Methods inherited from class java.io.OutputStream
nullOutputStream
-
-
-
-
Constructor Detail
-
DelegatingPositionOutputStream
public DelegatingPositionOutputStream(OutputStream stream)
-
-
Method Detail
-
getStream
public OutputStream getStream()
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classOutputStream- Throws:
IOException
-
flush
public void flush() throws IOException- Specified by:
flushin interfaceFlushable- Overrides:
flushin classOutputStream- Throws:
IOException
-
getPos
public abstract long getPos() throws IOExceptionDescription copied from class:PositionOutputStreamReports the current position of this output stream.- Specified by:
getPosin classPositionOutputStream- Returns:
- a long, the current position in bytes starting from 0
- Throws:
IOException- when the underlying stream throws IOException
-
write
public void write(int b) throws IOException- Specified by:
writein classOutputStream- Throws:
IOException
-
write
public void write(byte[] b) throws IOException- Overrides:
writein classOutputStream- Throws:
IOException
-
write
public void write(byte[] b, int off, int len) throws IOException- Overrides:
writein classOutputStream- Throws:
IOException
-
-