
io.virtdata.docsys.metafs.core.MetaFSProvider Maven / Gradle / Ivy
package io.virtdata.docsys.metafs.core;
import java.io.IOException;
import java.net.URI;
import java.nio.channels.FileChannel;
import java.nio.channels.SeekableByteChannel;
import java.nio.file.*;
import java.nio.file.attribute.BasicFileAttributes;
import java.nio.file.attribute.FileAttribute;
import java.nio.file.attribute.FileAttributeView;
import java.nio.file.spi.FileSystemProvider;
import java.security.InvalidParameterException;
import java.util.Map;
import java.util.Set;
public class MetaFSProvider extends FileSystemProvider {
@Override
public FileChannel newFileChannel(Path path,
Set extends OpenOption> options,
FileAttribute>... attrs)
throws IOException {
MetaPath metapath = assertMetaPath(path);
return metapath.getFileSystem().newFileChannel(path, options, attrs);
}
private MetaPath assertMetaPath(Path path) {
if (!(path instanceof MetaPath)) {
throw new InvalidParameterException("Unable to do MetaPath operations on Path of type " + path.getClass().getCanonicalName());
}
return (MetaPath) path;
}
@Override
public String getScheme() {
return null;
}
@Override
public FileSystem newFileSystem(URI uri, Map env) throws IOException {
return null;
}
@Override
public FileSystem getFileSystem(URI uri) {
return null;
}
@Override
public Path getPath(URI uri) {
return null;
}
@Override
public SeekableByteChannel newByteChannel(Path path, Set extends OpenOption> options, FileAttribute>... attrs) throws IOException {
return null;
}
@Override
public DirectoryStream newDirectoryStream(Path dir, DirectoryStream.Filter super Path> filter) throws IOException {
return null;
}
@Override
public void createDirectory(Path dir, FileAttribute>... attrs) throws IOException {
}
@Override
public void delete(Path path) throws IOException {
}
@Override
public void copy(Path source, Path target, CopyOption... options) throws IOException {
}
@Override
public void move(Path source, Path target, CopyOption... options) throws IOException {
}
@Override
public boolean isSameFile(Path path, Path path2) throws IOException {
return false;
}
@Override
public boolean isHidden(Path path) throws IOException {
return false;
}
@Override
public FileStore getFileStore(Path path) throws IOException {
return null;
}
@Override
public void checkAccess(Path path, AccessMode... modes) throws IOException {
}
@Override
public V getFileAttributeView(Path path, Class type, LinkOption... options) {
return null;
}
@Override
public A readAttributes(Path path, Class type, LinkOption... options) throws IOException {
return null;
}
@Override
public Map readAttributes(Path path, String attributes, LinkOption... options) throws IOException {
return null;
}
@Override
public void setAttribute(Path path, String attribute, Object value, LinkOption... options) throws IOException {
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy