public WrappedFileRange newWrappedFileRange()

in hadoop-api-shim/src/main/java/org/apache/hadoop/fs/shim/impl/FileRangeBridge.java [97:105]


  public WrappedFileRange newWrappedFileRange(long offset, int length) {
    Preconditions.checkState(bridgeAvailable(), "FileRange not available");
    try {
      return new WrappedFileRange(newFileRange.newInstance(offset, length));
    } catch (InstantiationException | IllegalAccessException | InvocationTargetException e) {
      throw new RuntimeException("failed to instantiate a FileRange object: " + e,
          e);
    }
  }