public class PbfFile extends Object
Constructor and Description |
---|
PbfFile(File file) |
PbfFile(RandomAccessFile file) |
Modifier and Type | Method and Description |
---|---|
void |
buildBlockIndex() |
Fileformat.Blob |
getDataBlob(int i) |
Osmformat.PrimitiveBlock |
getDataBlock(int i) |
BlobHeader |
getDataBlockHeader(int i) |
BlockInfo |
getDataBlockInfo(int i) |
Osmformat.HeaderBlock |
getHeaderBlock() |
int |
getNumberOfDataBlocks() |
byte[] |
getRawDataBlockWithHeader(int i) |
byte[] |
getRawHeaderBlockWithHeader() |
boolean |
hasHeader() |
boolean |
isBlockIndexInitialized() |
public PbfFile(File file) throws FileNotFoundException
FileNotFoundException
public PbfFile(RandomAccessFile file)
public void buildBlockIndex() throws IOException
IOException
public boolean isBlockIndexInitialized()
public boolean hasHeader()
public int getNumberOfDataBlocks()
public BlockInfo getDataBlockInfo(int i)
public byte[] getRawHeaderBlockWithHeader() throws IOException
IOException
public byte[] getRawDataBlockWithHeader(int i) throws IOException
IOException
public Osmformat.HeaderBlock getHeaderBlock() throws IOException
IOException
public BlobHeader getDataBlockHeader(int i) throws IOException
IOException
public Fileformat.Blob getDataBlob(int i) throws IOException
IOException
public Osmformat.PrimitiveBlock getDataBlock(int i) throws IOException
IOException