ExtendedDataInputStream extends DataInputStream { public int readVInt() throws IOException { return readVInt(readByte()); } ExtendedDataInputStream(InputStream in); int readVInt(); boolean isEof(); int readVIntNoEOFException(); long readVLong(); int readZInt(); long readZLong(); Bytes readBytes(); byte[] readArray(); @SuppressFBWarnings(value = "SR_NOT_CHECKED") void skipArray(); @SuppressFBWarnings(value = "SR_NOT_CHECKED") void skipInt(); @SuppressFBWarnings(value = "SR_NOT_CHECKED") void skipLong(); @SuppressFBWarnings(value = "SR_NOT_CHECKED") void skipDouble(); @SuppressFBWarnings(value = "SR_NOT_CHECKED") void skipBoolean();  }
@Test public void testReadVInt() throws IOException { checkAndCompareVInt(0, new byte[]{0}); checkAndCompareVInt(1, new byte[]{1}); checkAndCompareVInt(-1, new byte[]{-1, -1, -1, -1, 15}); checkAndCompareVInt(Integer.MIN_VALUE, new byte[]{-128, -128, -128, -128, 8}); checkAndCompareVInt(Integer.MAX_VALUE, new byte[]{-1, -1, -1, -1, 7}); }