@Test public void testRemaining() throws IOException { assertEquals(FILE_LENGTH, mTestStream.remaining()); mTestStream.read(); assertEquals(FILE_LENGTH - 1, mTestStream.remaining()); mTestStream.read(new byte[150]); assertEquals(FILE_LENGTH - 151, mTestStream.remaining()); mTestStream.skip(140); assertEquals(FILE_LENGTH - 291, mTestStream.remaining()); mTestStream.seek(310); assertEquals(FILE_LENGTH - 310, mTestStream.remaining()); mTestStream.seek(130); assertEquals(FILE_LENGTH - 130, mTestStream.remaining()); }
@Override public long remaining() { return mLength - mPosition; }
AlluxioFileInStream extends FileInStream { @Override public long remaining() { return mLength - mPosition; } }
AlluxioFileInStream extends FileInStream { @Override public long remaining() { return mLength - mPosition; } protected  AlluxioFileInStream(URIStatus status, InStreamOptions options,
      FileSystemContext context); }
AlluxioFileInStream extends FileInStream { @Override public long remaining() { return mLength - mPosition; } protected  AlluxioFileInStream(URIStatus status, InStreamOptions options,
      FileSystemContext context); @Override int read(); @Override int read(byte[] b); @Override int read(byte[] b, int off, int len); @Override long skip(long n); @Override void close(); @Override long remaining(); @Override int positionedRead(long pos, byte[] b, int off, int len); @Override long getPos(); @Override void seek(long pos); }
AlluxioFileInStream extends FileInStream { @Override public long remaining() { return mLength - mPosition; } protected  AlluxioFileInStream(URIStatus status, InStreamOptions options,
      FileSystemContext context); @Override int read(); @Override int read(byte[] b); @Override int read(byte[] b, int off, int len); @Override long skip(long n); @Override void close(); @Override long remaining(); @Override int positionedRead(long pos, byte[] b, int off, int len); @Override long getPos(); @Override void seek(long pos);  }