// Copyright © 2013-2014 Esko Luontola <www.orfjackal.net> // This software is released under the Apache License 2.0. // The license text is at http://www.apache.org/licenses/LICENSE-2.0 package net.orfjackal.retrolambda.fs; import java.io.IOException; import java.net.URI; import java.nio.channels.SeekableByteChannel; import java.nio.file.*; import java.nio.file.attribute.*; import java.nio.file.spi.FileSystemProvider; import java.util.*; public class FakeFileSystemProvider extends FileSystemProvider { @Override public String getScheme() { throw new UnsupportedOperationException(); } @Override public FileSystem newFileSystem(URI uri, Map<String, ?> env) throws IOException { throw new UnsupportedOperationException(); } @Override public FileSystem getFileSystem(URI uri) { throw new UnsupportedOperationException(); } @Override public Path getPath(URI uri) { throw new UnsupportedOperationException(); } @Override public SeekableByteChannel newByteChannel(Path path, Set<? extends OpenOption> options, FileAttribute<?>... attrs) throws IOException { throw new UnsupportedOperationException(); } @Override public DirectoryStream<Path> newDirectoryStream(Path dir, DirectoryStream.Filter<? super Path> filter) throws IOException { throw new UnsupportedOperationException(); } @Override public void createDirectory(Path dir, FileAttribute<?>... attrs) throws IOException { throw new UnsupportedOperationException(); } @Override public void delete(Path path) throws IOException { throw new UnsupportedOperationException(); } @Override public void copy(Path source, Path target, CopyOption... options) throws IOException { throw new UnsupportedOperationException(); } @Override public void move(Path source, Path target, CopyOption... options) throws IOException { throw new UnsupportedOperationException(); } @Override public boolean isSameFile(Path path, Path path2) throws IOException { throw new UnsupportedOperationException(); } @Override public boolean isHidden(Path path) throws IOException { throw new UnsupportedOperationException(); } @Override public FileStore getFileStore(Path path) throws IOException { throw new UnsupportedOperationException(); } @Override public void checkAccess(Path path, AccessMode... modes) throws IOException { throw new UnsupportedOperationException(); } @Override public <V extends FileAttributeView> V getFileAttributeView(Path path, Class<V> type, LinkOption... options) { throw new UnsupportedOperationException(); } @Override public <A extends BasicFileAttributes> A readAttributes(Path path, Class<A> type, LinkOption... options) throws IOException { throw new UnsupportedOperationException(); } @Override public Map<String, Object> readAttributes(Path path, String attributes, LinkOption... options) throws IOException { throw new UnsupportedOperationException(); } @Override public void setAttribute(Path path, String attribute, Object value, LinkOption... options) throws IOException { throw new UnsupportedOperationException(); } }