Class VarintDataInStream

    • 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
      • 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