Class FileBlockPosition
- java.lang.Object
-
- org.openstreetmap.osmosis.osmbinary.file.FileBlockBase
-
- org.openstreetmap.osmosis.osmbinary.file.FileBlockPosition
-
- Direct Known Subclasses:
FileBlockReference
public class FileBlockPosition extends FileBlockBase
Stores the position in the stream of a fileblock so that it can be easily read in a random-access fashion. We can turn this into a 'real' block by appropriately seeking into the file and doing a 'read'.
-
-
Field Summary
Fields Modifier and Type Field Description protected intdatasize-
Fields inherited from class org.openstreetmap.osmosis.osmbinary.file.FileBlockBase
indexdata, type
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedFileBlockPosition(java.lang.String type, com.google.protobuf.ByteString indexdata)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetDatasize()FileBlockread(java.io.InputStream input)com.google.protobuf.ByteStringserialize()TODO: Convert this reference into a serialized representation that can be stored.-
Methods inherited from class org.openstreetmap.osmosis.osmbinary.file.FileBlockBase
getIndexData, getType
-
-
-
-
Method Detail
-
getDatasize
public int getDatasize()
-
read
public FileBlock read(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
serialize
public com.google.protobuf.ByteString serialize()
TODO: Convert this reference into a serialized representation that can be stored.
-
-