Package org.h2.mvstore
Class StreamStore.Stream
java.lang.Object
java.io.InputStream
org.h2.mvstore.StreamStore.Stream
- All Implemented Interfaces:
Closeable
,AutoCloseable
- Enclosing class:
StreamStore
A stream backed by a map.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ByteArrayInputStream
private ByteBuffer
private final long
private byte[]
private long
private long
private final StreamStore
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
private ByteArrayInputStream
int
read()
int
read
(byte[] b, int off, int len) long
skip
(long n) Methods inherited from class java.io.InputStream
available, mark, markSupported, nullInputStream, read, readAllBytes, readNBytes, readNBytes, reset, skipNBytes, transferTo
-
Field Details
-
store
-
oneByteBuffer
private byte[] oneByteBuffer -
idBuffer
-
buffer
-
skip
private long skip -
length
private final long length -
pos
private long pos
-
-
Constructor Details
-
Stream
Stream(StreamStore store, byte[] id)
-
-
Method Details
-
read
- Specified by:
read
in classInputStream
- Throws:
IOException
-
skip
public long skip(long n) - Overrides:
skip
in classInputStream
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classInputStream
-
read
- Overrides:
read
in classInputStream
- Throws:
IOException
-
nextBuffer
-