test_class.file: feya/libraries/archive_diff/diff.applier/src/test/java/com/google/archivepatcher/applier/LimitedInputStreamTest.java
test_class.identifier: LimitedInputStreamTest
test_case.body: @SuppressWarnings("resource")
    @Test
    public void testRead_WithLimit100() throws IOException {
      LimitedInputStream stream = new LimitedInputStream(new ForeverInputStream(), 100);
      Assert.assertEquals(100, stream.read(new byte[1000]));
      Assert.assertEquals(-1, stream.read());
    }
test_case.class_method_signature: LimitedInputStreamTest.testRead_WithLimit100()
test_case.full_signature: @SuppressWarnings("resource") @Test public void testRead_WithLimit100()
test_case.identifier: testRead_WithLimit100
test_case.invocations: assertEquals read assertEquals read
test_case.modifiers: @SuppressWarnings("resource") @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testRead_WithLimit100()
focal_class.declarator: numToRead
focal_class.modifier: private
focal_class.original_string: private long numToRead;
focal_class.type: long
focal_class.var_name: numToRead
focal_class.declarator: ONE_BYTE = new byte[1]
focal_class.modifier: private
focal_class.original_string: private byte[] ONE_BYTE = new byte[1];
focal_class.type: byte[]
focal_class.var_name: ONE_BYTE
focal_class.file: feya/libraries/archive_diff/diff.applier/src/main/java/com/google/archivepatcher/applier/LimitedInputStream.java
focal_class.identifier: LimitedInputStream
focal_class.class_method_signature: LimitedInputStream.LimitedInputStream(InputStream in, long numToRead)
focal_class.full_signature: public  LimitedInputStream(InputStream in, long numToRead)
focal_class.identifier: LimitedInputStream
focal_class.modifiers: public
focal_class.parameters: (InputStream in, long numToRead)
focal_class.signature:  LimitedInputStream(InputStream in, long numToRead)
focal_class.class_method_signature: LimitedInputStream.read()
focal_class.full_signature: @Override public int read()
focal_class.identifier: read
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int read()
focal_class.class_method_signature: LimitedInputStream.read(byte[] b)
focal_class.full_signature: @Override public int read(byte[] b)
focal_class.identifier: read
focal_class.modifiers: @Override public
focal_class.parameters: (byte[] b)
focal_class.return: int
focal_class.signature: int read(byte[] b)
focal_class.class_method_signature: LimitedInputStream.read(byte[] b, int off, int len)
focal_class.full_signature: @Override public int read(byte[] b, int off, int len)
focal_class.identifier: read
focal_class.modifiers: @Override public
focal_class.parameters: (byte[] b, int off, int len)
focal_class.return: int
focal_class.signature: int read(byte[] b, int off, int len)
focal_class.superclass: extends FilterInputStream
focal_method.body: @Override
    public int read() throws IOException {
      if (read(ONE_BYTE, 0, 1) == 1) {
        return ONE_BYTE[0];
      }
      return -1;
    }
focal_method.class_method_signature: LimitedInputStream.read()
focal_method.full_signature: @Override public int read()
focal_method.identifier: read
focal_method.invocations: read
focal_method.modifiers: @Override public
focal_method.parameters: ()
focal_method.return: int
focal_method.signature: int read()