code: @InterfaceAudience.Private
    @InterfaceStability.Unstable
    public synchronized long remainingInFile() throws IOException {
      return objectCache.get(objName).getContentLength() - pos;
    }
docs: Bytes left in stream.
  
  @return how many bytes are left to read
  @throws IOException if error