Package org.apache.iceberg.io
Class PositionOutputStream
java.lang.Object
java.io.OutputStream
org.apache.iceberg.io.PositionOutputStream
- All Implemented Interfaces:
- Closeable,- Flushable,- AutoCloseable
- Direct Known Subclasses:
- AesGcmOutputStream,- OSSOutputStream
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionabstract longgetPos()Return the current position in the OutputStream.longReturn the current stored length of the output.Methods inherited from class java.io.OutputStreamclose, flush, nullOutputStream, write, write, write
- 
Constructor Details- 
PositionOutputStreampublic PositionOutputStream()
 
- 
- 
Method Details- 
getPosReturn the current position in the OutputStream.- Returns:
- current position in bytes from the start of the stream
- Throws:
- IOException- If the underlying stream throws IOException
 
- 
storedLengthReturn the current stored length of the output. Can differ from the current position for encrypting streams, and for other non-length-preserving streams.- Returns:
- current stored length in bytes
- Throws:
- IOException- If the underlying stream throws IOException
 
 
-