// 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.nio.file.*; import java.nio.file.attribute.UserPrincipalLookupService; import java.nio.file.spi.FileSystemProvider; import java.util.Set; public class FakeFileSystem extends FileSystem { @Override public FileSystemProvider provider() { throw new UnsupportedOperationException(); } @Override public void close() throws IOException { throw new UnsupportedOperationException(); } @Override public boolean isOpen() { throw new UnsupportedOperationException(); } @Override public boolean isReadOnly() { throw new UnsupportedOperationException(); } @Override public String getSeparator() { throw new UnsupportedOperationException(); } @Override public Iterable<Path> getRootDirectories() { throw new UnsupportedOperationException(); } @Override public Iterable<FileStore> getFileStores() { throw new UnsupportedOperationException(); } @Override public Set<String> supportedFileAttributeViews() { throw new UnsupportedOperationException(); } @Override public Path getPath(String first, String... more) { throw new UnsupportedOperationException(); } @Override public PathMatcher getPathMatcher(String syntaxAndPattern) { throw new UnsupportedOperationException(); } @Override public UserPrincipalLookupService getUserPrincipalLookupService() { throw new UnsupportedOperationException(); } @Override public WatchService newWatchService() throws IOException { throw new UnsupportedOperationException(); } }