Class FileBlock
- java.lang.Object
-
- org.openstreetmap.osmosis.osmbinary.file.FileBlockBase
-
- org.openstreetmap.osmosis.osmbinary.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 org.openstreetmap.osmosis.osmbinary.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(java.lang.String type, com.google.protobuf.ByteString blob, com.google.protobuf.ByteString indexdata)FileBlockPositionwriteTo(java.io.OutputStream outwrite, org.openstreetmap.osmosis.osmbinary.file.CompressFlags flags)-
Methods inherited from class org.openstreetmap.osmosis.osmbinary.file.FileBlockBase
getIndexData, getType
-
-
-
-
Method Detail
-
newInstance
public static FileBlock newInstance(java.lang.String type, com.google.protobuf.ByteString blob, com.google.protobuf.ByteString indexdata)
-
deflateInto
protected void deflateInto(Fileformat.Blob.Builder blobbuilder)
-
writeTo
public FileBlockPosition writeTo(java.io.OutputStream outwrite, org.openstreetmap.osmosis.osmbinary.file.CompressFlags flags) throws java.io.IOException
- Throws:
java.io.IOException
-
getData
public com.google.protobuf.ByteString getData()
-
-