Package org.h2.store
Class LobStorageRemoteInputStream
- java.lang.Object
-
- java.io.InputStream
-
- org.h2.store.LobStorageRemoteInputStream
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
public class LobStorageRemoteInputStream extends java.io.InputStream
An input stream used by the client side of a tcp connection to fetch LOB data on demand from the server.
-
-
Field Summary
Fields Modifier and Type Field Description private byte[]
hmac
private long
lobId
The lob id.private long
pos
The position.private SessionRemote
sessionRemote
-
Constructor Summary
Constructors Constructor Description LobStorageRemoteInputStream(SessionRemote handler, long lobId, byte[] hmac)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
read()
int
read(byte[] buff)
int
read(byte[] buff, int off, int length)
-
-
-
Field Detail
-
sessionRemote
private final SessionRemote sessionRemote
-
lobId
private final long lobId
The lob id.
-
hmac
private final byte[] hmac
-
pos
private long pos
The position.
-
-
Constructor Detail
-
LobStorageRemoteInputStream
public LobStorageRemoteInputStream(SessionRemote handler, long lobId, byte[] hmac)
-
-
Method Detail
-
read
public int read() throws java.io.IOException
- Specified by:
read
in classjava.io.InputStream
- Throws:
java.io.IOException
-
read
public int read(byte[] buff) throws java.io.IOException
- Overrides:
read
in classjava.io.InputStream
- Throws:
java.io.IOException
-
read
public int read(byte[] buff, int off, int length) throws java.io.IOException
- Overrides:
read
in classjava.io.InputStream
- Throws:
java.io.IOException
-
-