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 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)
-
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:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classOutputStream
- Throws:
IOException
-
flush
public void flush() throws IOException
- Specified by:
flush
in interfaceFlushable
- Overrides:
flush
in classOutputStream
- Throws:
IOException
-
getPos
public abstract long getPos() throws IOException
Description copied from class:PositionOutputStream
Reports the current position of this output stream.- Specified by:
getPos
in 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:
write
in classOutputStream
- Throws:
IOException
-
write
public void write(byte[] b) throws IOException
- Overrides:
write
in classOutputStream
- Throws:
IOException
-
write
public void write(byte[] b, int off, int len) throws IOException
- Overrides:
write
in classOutputStream
- Throws:
IOException
-
-