private long refreshFileLength() throws IOException {
      long newSize = fileAdapter.getFileSize();
      long delta = newSize - prevFileSize;
      prevFileSize = newSize;
      return delta;
    }
private long refreshFileLength()