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