/** * Returns {@link DirectInputFragment} for the range. * @param start the start offset (inclusive) * @param end the end offset (exclusive) * @return the computed fragment */ public DirectInputFragment get(long start, long end) { List<String> hosts = computeHosts(start, end); return new DirectInputFragment(path, start, end - start, hosts); }
this.fragment = new DirectInputFragment(path, offset, length, Arrays.asList(locations), attributes);