Class PositionOutputStream

java.lang.Object
java.io.OutputStream
org.apache.iceberg.io.PositionOutputStream
All Implemented Interfaces:
Closeable, Flushable, AutoCloseable
Direct Known Subclasses:
AesGcmOutputStream, OSSOutputStream

public abstract class PositionOutputStream extends OutputStream
  • Constructor Details

    • PositionOutputStream

      public PositionOutputStream()
  • Method Details

    • getPos

      public abstract long getPos() throws IOException
      Return 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
    • storedLength

      public long storedLength() throws IOException
      Return 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