Package crosby.binary.file
Class FileBlockReference
- java.lang.Object
-
- crosby.binary.file.FileBlockBase
-
- crosby.binary.file.FileBlockPosition
-
- crosby.binary.file.FileBlockReference
-
- Direct Known Subclasses:
FileBlockHead
public class FileBlockReference extends FileBlockPosition
A FileBlockPosition that remembers what file this is so that it can simply be dereferenced
-
-
Field Summary
Fields Modifier and Type Field Description protected java.io.InputStream
input
Convenience cache for storing the input this reference is contained within so that it can be cached-
Fields inherited from class crosby.binary.file.FileBlockPosition
data_offset, datasize
-
Fields inherited from class crosby.binary.file.FileBlockBase
indexdata, MAX_BODY_SIZE, MAX_HEADER_SIZE, type
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
FileBlockReference(java.lang.String type, com.google.protobuf.ByteString indexdata)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) static FileBlockPosition
newInstance(FileBlockBase base, java.io.InputStream input, long offset, int length)
FileBlock
read()
-
Methods inherited from class crosby.binary.file.FileBlockPosition
getDatasize, newInstance, parseData, parseFrom, read, serialize
-
Methods inherited from class crosby.binary.file.FileBlockBase
getIndexData, getType
-
-
-
-
Method Detail
-
read
public FileBlock read() throws java.io.IOException
- Throws:
java.io.IOException
-
newInstance
static FileBlockPosition newInstance(FileBlockBase base, java.io.InputStream input, long offset, int length)
-
-