// 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.*; import java.net.URI; import java.nio.file.FileSystem; import java.nio.file.*; import java.util.Iterator; public class FakePath implements Path { @Override public FileSystem getFileSystem() { throw new UnsupportedOperationException(); } @Override public boolean isAbsolute() { throw new UnsupportedOperationException(); } @Override public Path getRoot() { throw new UnsupportedOperationException(); } @Override public Path getFileName() { throw new UnsupportedOperationException(); } @Override public Path getParent() { throw new UnsupportedOperationException(); } @Override public int getNameCount() { throw new UnsupportedOperationException(); } @Override public Path getName(int index) { throw new UnsupportedOperationException(); } @Override public Path subpath(int beginIndex, int endIndex) { throw new UnsupportedOperationException(); } @Override public boolean startsWith(Path other) { throw new UnsupportedOperationException(); } @Override public boolean startsWith(String other) { throw new UnsupportedOperationException(); } @Override public boolean endsWith(Path other) { throw new UnsupportedOperationException(); } @Override public boolean endsWith(String other) { throw new UnsupportedOperationException(); } @Override public Path normalize() { throw new UnsupportedOperationException(); } @Override public Path resolve(Path other) { throw new UnsupportedOperationException(); } @Override public Path resolve(String other) { throw new UnsupportedOperationException(); } @Override public Path resolveSibling(Path other) { throw new UnsupportedOperationException(); } @Override public Path resolveSibling(String other) { throw new UnsupportedOperationException(); } @Override public Path relativize(Path other) { throw new UnsupportedOperationException(); } @Override public URI toUri() { throw new UnsupportedOperationException(); } @Override public Path toAbsolutePath() { throw new UnsupportedOperationException(); } @Override public Path toRealPath(LinkOption... options) throws IOException { throw new UnsupportedOperationException(); } @Override public File toFile() { throw new UnsupportedOperationException(); } @Override public WatchKey register(WatchService watcher, WatchEvent.Kind<?>[] events, WatchEvent.Modifier... modifiers) throws IOException { throw new UnsupportedOperationException(); } @Override public WatchKey register(WatchService watcher, WatchEvent.Kind<?>... events) throws IOException { throw new UnsupportedOperationException(); } @Override public Iterator<Path> iterator() { throw new UnsupportedOperationException(); } @Override public int compareTo(Path other) { throw new UnsupportedOperationException(); } }