/** {@inheritDoc} */ @Override public IgfsInputStream open(IgfsPath path, int bufSize, int seqReadsBeforePrefetch) { return igfs.open(path, bufSize, seqReadsBeforePrefetch); }
/** {@inheritDoc} */ @Override public IgfsInputStream open(IgfsPath path, int bufSize) { return igfs.open(path, bufSize); }
/** {@inheritDoc} */ @Override public IgfsInputStream open(IgfsPath path) { return igfs.open(path); }
/** {@inheritDoc} */ @Override public IgfsInputStream open(IgfsPath path, int bufSize) { return open(path, bufSize, cfg.getSequentialReadsBeforePrefetch()); }
/** {@inheritDoc} */ @Override public IgfsInputStream open(IgfsPath path) { return open(path, cfg.getBufferSize(), cfg.getSequentialReadsBeforePrefetch()); }
@Override public Object call() throws Exception { IgfsInputStream is = null; try { is = igfs.open(FILE); } finally { U.closeQuiet(is); } return null; } }, IgfsPathNotFoundException.class, "File not found: " + FILE);
/** * Read some data from the given file with the given offset. * * @param path File path. * @param off Offset. * @param len Length. * @throws Exception If failed. */ private void read(IgfsPath path, int off, int len) throws Exception { IgfsInputStream is = igfsPrimary.open(path); is.readFully(off, new byte[len]); is.close(); }
@Override public Object call() throws Exception { IgfsInputStream in0 = igfs.open(FILE); in0.seek(blockSize * 2); try { in0.read(readBuf); } finally { U.closeQuiet(in0); } return null; } }, IOException.class,
is = igfs.open(file);
try (IgfsInputStream is = igfs.open(file, 256)) { is.readFully(0, buf); // Will generate no events.
int total = 0; IgfsInputStream is = igfs(i).open(file.path());
/** {@inheritDoc} */ @Override public IgfsInputStream open(IgfsPath path, int bufSize, int seqReadsBeforePrefetch) { return igfs.open(path, bufSize, seqReadsBeforePrefetch); }
/** {@inheritDoc} */ @Override public IgfsInputStream open(IgfsPath path) { return igfs.open(path); }
/** {@inheritDoc} */ @Override public IgfsInputStream open(IgfsPath path, int bufSize) { return igfs.open(path, bufSize); }
/** {@inheritDoc} */ @Override public IgfsInputStream open(IgfsPath path, int bufSize) { return open(path, bufSize, cfg.getSequentialReadsBeforePrefetch()); }
/** {@inheritDoc} */ @Override public IgfsInputStream open(IgfsPath path) { return open(path, cfg.getBufferSize(), cfg.getSequentialReadsBeforePrefetch()); }