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:
writein classOutputStream- Throws:
IOException
-
write
- Overrides:
writein classOutputStream- Throws:
IOException
-
getPos
Description copied from class:PositionOutputStreamReturn the current position in the OutputStream.- Specified by:
getPosin classPositionOutputStream- Returns:
- current position in bytes from the start of the stream
- Throws:
IOException- If the underlying stream throws IOException
-
flush
- Specified by:
flushin interfaceFlushable- Overrides:
flushin classOutputStream- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classOutputStream- Throws:
IOException
-
storedLength
Description copied from class:PositionOutputStreamReturn the current stored length of the output. Can differ from the current position for encrypting streams, and for other non-length-preserving streams.- Overrides:
storedLengthin classPositionOutputStream- Returns:
- current stored length in bytes
- Throws:
IOException- If the underlying stream throws IOException
-