public abstract class PbfDecoder extends java.lang.Object implements ITileDecoder
| Modifier and Type | Field and Description |
|---|---|
protected byte[] |
buffer |
protected int |
bufferFill |
protected int |
bufferPos |
protected static boolean |
debug |
protected static org.oscim.tiling.source.PbfDecoder.ProtobufException |
INVALID_PACKED_SIZE |
protected static org.oscim.tiling.source.PbfDecoder.ProtobufException |
INVALID_VARINT |
| Constructor and Description |
|---|
PbfDecoder() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
decodeBool() |
protected double |
decodeDouble() |
protected float |
decodeFloat() |
protected int |
decodeInterleavedPoints(GeometryBuffer geom,
float scale) |
protected int |
decodeInterleavedPoints3D(float[] coords,
float scale) |
protected java.lang.String |
decodeString() |
protected short[] |
decodeUnsignedVarintArray(short[] array)
fill short array from packed uint32.
|
protected int |
decodeVarint32() |
protected int |
decodeVarint32Filled() |
protected long |
decodeVarint64() |
void |
decodeVarintArray(int num,
int[] array) |
protected static int |
deZigZag(int val) |
protected void |
error(java.lang.String msg) |
int |
fillBuffer(int size) |
boolean |
hasData() |
int |
position() |
protected static int |
readUnsignedInt(java.io.InputStream is,
byte[] buf) |
void |
setInputStream(java.io.InputStream is) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdecodeprotected static final boolean debug
protected static final org.oscim.tiling.source.PbfDecoder.ProtobufException INVALID_VARINT
protected static final org.oscim.tiling.source.PbfDecoder.ProtobufException INVALID_PACKED_SIZE
protected byte[] buffer
protected int bufferPos
protected int bufferFill
protected void error(java.lang.String msg)
throws java.io.IOException
java.io.IOExceptionpublic void setInputStream(java.io.InputStream is)
protected int decodeVarint32()
throws java.io.IOException
java.io.IOExceptionprotected long decodeVarint64()
throws java.io.IOException
java.io.IOExceptionprotected java.lang.String decodeString()
throws java.io.IOException
java.io.IOExceptionprotected float decodeFloat()
throws java.io.IOException
java.io.IOExceptionprotected double decodeDouble()
throws java.io.IOException
java.io.IOExceptionprotected boolean decodeBool()
throws java.io.IOException
java.io.IOExceptionprotected int decodeInterleavedPoints(GeometryBuffer geom, float scale) throws java.io.IOException
java.io.IOExceptionprotected int decodeInterleavedPoints3D(float[] coords,
float scale)
throws java.io.IOException
java.io.IOExceptionprotected static int deZigZag(int val)
public void decodeVarintArray(int num,
int[] array)
throws java.io.IOException
java.io.IOExceptionprotected short[] decodeUnsignedVarintArray(short[] array)
throws java.io.IOException
java.io.IOExceptionprotected int decodeVarint32Filled()
throws java.io.IOException
java.io.IOExceptionpublic boolean hasData()
throws java.io.IOException
java.io.IOExceptionpublic int position()
public int fillBuffer(int size)
throws java.io.IOException
java.io.IOExceptionprotected static int readUnsignedInt(java.io.InputStream is,
byte[] buf)
throws java.io.IOException
java.io.IOException