larksuite-oapi/src/main/java/com/larksuite/oapi/okhttp3_14/internal/cache2/FileOperator.java
public void read(long pos, Buffer sink, long byteCount) throws IOException {
    if (byteCount < 0) throw new IndexOutOfBoundsException();

    while (byteCount > 0L) {
      long bytesRead = fileChannel.transferTo(pos, byteCount, sink);
      pos += bytesRead;
      byteCount -= bytesRead;
    }
  }
/**
   * Copy {@code byteCount} bytes from the file at {@code pos} into to {@code source}. It is the
   * caller's responsibility to make sure there are sufficient bytes to read: if there aren't this
   * method throws an {@link EOFException}.
   */
Copy  byteCount bytes from the file at  pos into to  source. It is the
caller's responsibility to make sure there are sufficient bytes to read: if there aren't this
method throws an  EOFException.
Copy byteCount bytes from the file at pos into to source . It is the caller ' s responsibility to make sure there are sufficient bytes to read : if there aren ' t this method throws an EOFException .
public void read(long pos, Buffer sink, long byteCount) throws IOException {
    if (byteCount < 0) throw new IndexOutOfBoundsException();
    while (byteCount > 0L) {
      long bytesRead = fileChannel.transferTo(pos, byteCount, sink);
      pos += bytesRead;
      byteCount -= bytesRead;
    }
  }
public void read ( long pos , Buffer sink , long byteCount ) throws IOException { if ( byteCount < 0 ) throw new IndexOutOfBoundsException ( ) ; while ( byteCount > 0L ) { long bytesRead = fileChannel . transferTo ( pos , byteCount , sink ) ; pos += bytesRead ; byteCount -= bytesRead ; } }
Copy {@code byteCount} bytes from the file at {@code pos} into to {@code source}.
Copy { @code byteCount } bytes from the file at { @code pos } into to { @code source } .