@Override protected RandomAccessContent doGetRandomAccessContent(final RandomAccessMode mode) throws Exception { return new HttpRandomAccessContent<>(this, mode); }
@Override public void seek(final long pos) throws IOException { if (pos == filePointer) { // no change return; } if (pos < 0) { throw new FileSystemException("vfs.provider/random-access-invalid-position.error", Long.valueOf(pos)); } if (dis != null) { close(); } filePointer = pos; }
@Override public void seek(final long pos) throws IOException { if (pos == filePointer) { // no change return; } if (pos < 0) { throw new FileSystemException("vfs.provider/random-access-invalid-position.error", Long.valueOf(pos)); } if (dis != null) { close(); } filePointer = pos; }
@Override protected RandomAccessContent doGetRandomAccessContent(final RandomAccessMode mode) throws Exception { return new HttpRandomAccessContent(this, mode); }
@Override public void seek(final long pos) throws IOException { if (pos == filePointer) { // no change return; } if (pos < 0) { throw new FileSystemException("vfs.provider/random-access-invalid-position.error", Long.valueOf(pos)); } if (dis != null) { close(); } filePointer = pos; }
@Override protected RandomAccessContent doGetRandomAccessContent(final RandomAccessMode mode) throws Exception { return new HttpRandomAccessContent(this, mode); }