Package org.geotools.data.postgis
Class VarintDataInStream
- Object
-
- VarintDataInStream
-
public class VarintDataInStream extends Object
-
-
Constructor Summary
Constructors Constructor Description VarintDataInStream()
Constructor allowing to set the stream later, will NPE if the stream is not setVarintDataInStream(InStream stream)
Builds the varint data stream with the given stream
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte
readByte()
Reads a byteint
readSignedInt()
Reads an signed varintegerlong
readSignedLong()
Reads an signed 64-bit varintegerint
readUnsignedInt()
Reads an un-signed varintegervoid
setInStream(InStream stream)
Sets a new InStream to delegate reads to
-
-
-
Constructor Detail
-
VarintDataInStream
public VarintDataInStream()
Constructor allowing to set the stream later, will NPE if the stream is not set
-
VarintDataInStream
public VarintDataInStream(InStream stream)
Builds the varint data stream with the given stream
-
-
Method Detail
-
setInStream
public void setInStream(InStream stream)
Sets a new InStream to delegate reads to
-
readByte
public byte readByte() throws IOException
Reads a byte- Throws:
IOException
-
readUnsignedInt
public int readUnsignedInt() throws IOException
Reads an un-signed varinteger- Throws:
IOException
-
readSignedInt
public int readSignedInt() throws IOException
Reads an signed varinteger- Throws:
IOException
-
readSignedLong
public long readSignedLong() throws IOException
Reads an signed 64-bit varinteger- Throws:
IOException
-
-