Package org.apache.iceberg.encryption
Class AesGcmOutputStream
java.lang.Object
java.io.OutputStream
org.apache.iceberg.io.PositionOutputStream
org.apache.iceberg.encryption.AesGcmOutputStream
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
-
Method Summary
Methods inherited from class java.io.OutputStream
nullOutputStream, write
-
Method Details
-
write
- Specified by:
write
in classOutputStream
- Throws:
IOException
-
write
- Overrides:
write
in classOutputStream
- Throws:
IOException
-
getPos
Description copied from class:PositionOutputStream
Return the current position in the OutputStream.- Specified by:
getPos
in classPositionOutputStream
- Returns:
- current position in bytes from the start of the stream
- Throws:
IOException
- If the underlying stream throws IOException
-
flush
- Specified by:
flush
in interfaceFlushable
- Overrides:
flush
in classOutputStream
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classOutputStream
- Throws:
IOException
-
storedLength
Description copied from class:PositionOutputStream
Return the current stored length of the output. Can differ from the current position for encrypting streams, and for other non-length-preserving streams.- Overrides:
storedLength
in classPositionOutputStream
- Returns:
- current stored length in bytes
- Throws:
IOException
- If the underlying stream throws IOException
-