Package crosby.binary.file
Class FileBlock
- java.lang.Object
-
- crosby.binary.file.FileBlockBase
-
- crosby.binary.file.FileBlock
-
public class FileBlock extends FileBlockBase
A full fileblock object contains both the metadata and data of a fileblock
-
-
Field Summary
-
Fields inherited from class crosby.binary.file.FileBlockBase
indexdata, type
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddeflateInto(Fileformat.Blob.Builder blobbuilder)com.google.protobuf.ByteStringgetData()static FileBlocknewInstance(String type, com.google.protobuf.ByteString blob, com.google.protobuf.ByteString indexdata)FileBlockPositionwriteTo(OutputStream outwrite, crosby.binary.file.CompressFlags flags)-
Methods inherited from class crosby.binary.file.FileBlockBase
getIndexData, getType
-
-
-
-
Method Detail
-
newInstance
public static FileBlock newInstance(String type, com.google.protobuf.ByteString blob, com.google.protobuf.ByteString indexdata)
-
deflateInto
protected void deflateInto(Fileformat.Blob.Builder blobbuilder)
-
writeTo
public FileBlockPosition writeTo(OutputStream outwrite, crosby.binary.file.CompressFlags flags) throws IOException
- Throws:
IOException
-
getData
public com.google.protobuf.ByteString getData()
-
-