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 ByteArrayInputStreamprivate ByteBufferprivate final longprivate byte[]private longprivate longprivate final StreamStore -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()private ByteArrayInputStreamintread()intread(byte[] b, int off, int len) longskip(long n) Methods inherited from class 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:
readin classInputStream- Throws:
IOException
-
skip
public long skip(long n) - Overrides:
skipin classInputStream
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classInputStream
-
read
- Overrides:
readin classInputStream- Throws:
IOException
-
nextBuffer
-