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 InputStreaminputConvenience cache for storing the input this reference is contained within so that it can be cached-
Fields inherited from class crosby.binary.file.FileBlockPosition
datasize
-
Fields inherited from class crosby.binary.file.FileBlockBase
indexdata, type
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedFileBlockReference(String type, com.google.protobuf.ByteString indexdata)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FileBlockread()-
Methods inherited from class crosby.binary.file.FileBlockPosition
getDatasize, read, serialize
-
Methods inherited from class crosby.binary.file.FileBlockBase
getIndexData, getType
-
-
-
-
Field Detail
-
input
protected InputStream input
Convenience cache for storing the input this reference is contained within so that it can be cached
-
-
Constructor Detail
-
FileBlockReference
protected FileBlockReference(String type, com.google.protobuf.ByteString indexdata)
-
-
Method Detail
-
read
public FileBlock read() throws IOException
- Throws:
IOException
-
-