Package org.h2.server
Class TcpServerThread.CachedInputStream
- java.lang.Object
-
- java.io.InputStream
-
- java.io.FilterInputStream
-
- org.h2.server.TcpServerThread.CachedInputStream
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
- Enclosing class:
- TcpServerThread
static class TcpServerThread.CachedInputStream extends java.io.FilterInputStream
An input stream with a position.
-
-
Constructor Summary
Constructors Constructor Description CachedInputStream(java.io.InputStream in)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getPos()
int
read()
int
read(byte[] buff, int off, int len)
long
skip(long n)
-
Methods inherited from class java.io.FilterInputStream
available, close, mark, markSupported, read, reset
-
-
-
-
Method Detail
-
read
public int read(byte[] buff, int off, int len) throws java.io.IOException
- Overrides:
read
in classjava.io.FilterInputStream
- Throws:
java.io.IOException
-
read
public int read() throws java.io.IOException
- Overrides:
read
in classjava.io.FilterInputStream
- Throws:
java.io.IOException
-
skip
public long skip(long n) throws java.io.IOException
- Overrides:
skip
in classjava.io.FilterInputStream
- Throws:
java.io.IOException
-
getPos
public long getPos()
-
-