Package org.sonar.python.caching
Class VarLengthInputStream
- java.lang.Object
-
- org.sonar.python.caching.VarLengthInputStream
-
- All Implemented Interfaces:
Closeable,AutoCloseable
public class VarLengthInputStream extends Object implements Closeable
Use variable length encoding for integers. https://en.wikipedia.org/wiki/Variable-length_code
-
-
Constructor Summary
Constructors Constructor Description VarLengthInputStream(byte[] input)
-
-
-
Method Detail
-
readUTF
public String readUTF() throws IOException
- Throws:
IOException
-
readInt
public int readInt() throws IOException- Throws:
IOException
-
readByte
public byte readByte() throws IOException- Throws:
IOException
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
-