@Test public void testRead_WithBuffer_NegativeLength() throws IOException { Assert.assertEquals(0, stream.read(new byte[] {}, 0, -1)); }
@Override public int read() throws IOException { if (available() <= 0) { return -1; } return raf.read(); }
RandomAccessFileInputStream extends InputStream { @Override public int read() throws IOException { if (available() <= 0) { return -1; } return raf.read(); } }
RandomAccessFileInputStream extends InputStream { @Override public int read() throws IOException { if (available() <= 0) { return -1; } return raf.read(); } RandomAccessFileInputStream(File file);  RandomAccessFileInputStream(File file, long rangeOffset, long rangeLength); }
RandomAccessFileInputStream extends InputStream { @Override public int read() throws IOException { if (available() <= 0) { return -1; } return raf.read(); } RandomAccessFileInputStream(File file);  RandomAccessFileInputStream(File file, long rangeOffset, long rangeLength); void setRange(long rangeOffset, long rangeLength); @Override int available(); long getPosition(); @Override void close(); @Override int read(); @Override int read(byte[] b, int off, int len); @Override int read(byte[] b); @Override long skip(long n); @Override boolean markSupported(); @Override void mark(int readlimit); @Override void reset(); long length(); }
RandomAccessFileInputStream extends InputStream { @Override public int read() throws IOException { if (available() <= 0) { return -1; } return raf.read(); } RandomAccessFileInputStream(File file);  RandomAccessFileInputStream(File file, long rangeOffset, long rangeLength); void setRange(long rangeOffset, long rangeLength); @Override int available(); long getPosition(); @Override void close(); @Override int read(); @Override int read(byte[] b, int off, int len); @Override int read(byte[] b); @Override long skip(long n); @Override boolean markSupported(); @Override void mark(int readlimit); @Override void reset(); long length();  }