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 bytereadByte()Reads a byteintreadSignedInt()Reads an signed varintegerlongreadSignedLong()Reads an signed 64-bit varintegerintreadUnsignedInt()Reads an un-signed varintegervoidsetInStream(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 IOExceptionReads a byte- Throws:
IOException
-
readUnsignedInt
public int readUnsignedInt() throws IOExceptionReads an un-signed varinteger- Throws:
IOException
-
readSignedInt
public int readSignedInt() throws IOExceptionReads an signed varinteger- Throws:
IOException
-
readSignedLong
public long readSignedLong() throws IOExceptionReads an signed 64-bit varinteger- Throws:
IOException
-
-