public class AesGcmInputStream extends SeekableInputStream
Modifier and Type | Method and Description |
---|---|
int |
available() |
void |
close() |
long |
getPos()
Return the current position in the InputStream.
|
int |
read() |
int |
read(byte[] b,
int off,
int len) |
void |
seek(long newPos)
Seek to a new position in the InputStream.
|
long |
skip(long n) |
public int available()
available
in class java.io.InputStream
public int read(byte[] b, int off, int len) throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
public void seek(long newPos) throws java.io.IOException
SeekableInputStream
seek
in class SeekableInputStream
newPos
- the new position to seek tojava.io.IOException
- If the underlying stream throws IOExceptionpublic long skip(long n)
skip
in class java.io.InputStream
public long getPos() throws java.io.IOException
SeekableInputStream
getPos
in class SeekableInputStream
java.io.IOException
- If the underlying stream throws IOExceptionpublic int read() throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.InputStream
java.io.IOException