code: public int available() throws IOException {
          checkForClosed();
          return (int) Math.min(_file.length() - _offset + bytesLeftInBuffer(), Integer.MAX_VALUE);
      }
docs: /*
  (non-Javadoc)
  
  @see java.io.InputStream#available()