code: @Override
      public int available() throws IOException {
          long length = mRandomAccess.length() - position;
          return length > Integer.MAX_VALUE ? Integer.MAX_VALUE : (int) length;
      }
docs: / InputStream