Package org.apache.iceberg.encryption
Class AesGcmInputStream
java.lang.Object
java.io.InputStream
org.apache.iceberg.io.SeekableInputStream
org.apache.iceberg.encryption.AesGcmInputStream
- All Implemented Interfaces:
Closeable
,AutoCloseable
-
Method Summary
Methods inherited from class java.io.InputStream
mark, markSupported, nullInputStream, read, readAllBytes, readNBytes, readNBytes, reset, skipNBytes, transferTo
-
Method Details
-
available
public int available()- Overrides:
available
in classInputStream
-
read
- Overrides:
read
in classInputStream
- Throws:
IOException
-
seek
Description copied from class:SeekableInputStream
Seek to a new position in the InputStream.- Specified by:
seek
in classSeekableInputStream
- Parameters:
newPos
- the new position to seek to- Throws:
IOException
- If the underlying stream throws IOException
-
skip
public long skip(long n) - Overrides:
skip
in classInputStream
-
getPos
Description copied from class:SeekableInputStream
Return the current position in the InputStream.- Specified by:
getPos
in classSeekableInputStream
- Returns:
- current position in bytes from the start of the stream
- Throws:
IOException
- If the underlying stream throws IOException
-
read
- Specified by:
read
in classInputStream
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classInputStream
- Throws:
IOException
-