public class BlueObjectInput<T>
extends java.lang.Object
implements java.io.Closeable, java.util.Iterator<T>
Constructor and Description |
---|
BlueObjectInput(BlueReadLock<java.nio.file.Path> readLock,
BlueSerializer serializer) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
byte[] |
getLastBytes() |
java.nio.file.Path |
getPath() |
protected static <T> BlueObjectInput<T> |
getTestInput(java.nio.file.Path path,
BlueSerializer serializer,
java.io.DataInputStream dataInputStream) |
boolean |
hasNext() |
T |
next() |
protected byte[] |
nextBytesFromFile() |
byte[] |
nextWithoutDeserializing() |
protected static java.io.DataInputStream |
openDataInputStream(java.io.File file) |
T |
peek() |
public BlueObjectInput(BlueReadLock<java.nio.file.Path> readLock, BlueSerializer serializer) throws BlueDbException
BlueDbException
protected static <T> BlueObjectInput<T> getTestInput(java.nio.file.Path path, BlueSerializer serializer, java.io.DataInputStream dataInputStream)
public java.nio.file.Path getPath()
public void close()
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
public boolean hasNext()
hasNext
in interface java.util.Iterator<T>
public byte[] nextWithoutDeserializing()
public byte[] getLastBytes()
public T peek()
protected byte[] nextBytesFromFile()
protected static java.io.DataInputStream openDataInputStream(java.io.File file) throws BlueDbException
BlueDbException