Class LinkFSProvider
java.lang.Object
java.nio.file.spi.FileSystemProvider
net.minecraft.server.packs.linkfs.LinkFSProvider
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
checkAccess
(Path path, AccessMode... modes) void
copy
(Path source, Path target, CopyOption... options) void
createDirectory
(Path path, FileAttribute<?>... attributes) void
<V extends FileAttributeView>
VgetFileAttributeView
(Path path, Class<V> type, LinkOption... options) getFileStore
(Path path) getFileSystem
(URI uri) boolean
boolean
isSameFile
(Path path, Path path2) void
move
(Path source, Path target, CopyOption... options) newByteChannel
(Path p_path, Set<? extends OpenOption> options, FileAttribute<?>... attributes) newDirectoryStream
(Path directory, DirectoryStream.Filter<? super Path> filter) newFileSystem
(URI uri, Map<String, ?> enviroment) <A extends BasicFileAttributes>
AreadAttributes
(Path path, Class<A> type, LinkOption... options) readAttributes
(Path path, String attributes, LinkOption... options) void
setAttribute
(Path path, String attribute, Object value, LinkOption... options) private static LinkFSPath
toLinkPath
(Path path) Methods inherited from class java.nio.file.spi.FileSystemProvider
createLink, createSymbolicLink, deleteIfExists, exists, installedProviders, newAsynchronousFileChannel, newFileChannel, newFileSystem, newInputStream, newOutputStream, readAttributesIfExists, readSymbolicLink
-
Field Details
-
SCHEME
- See Also:
-
-
Constructor Details
-
LinkFSProvider
LinkFSProvider()
-
-
Method Details
-
getScheme
- Specified by:
getScheme
in classFileSystemProvider
-
newFileSystem
- Specified by:
newFileSystem
in classFileSystemProvider
-
getFileSystem
- Specified by:
getFileSystem
in classFileSystemProvider
-
getPath
- Specified by:
getPath
in classFileSystemProvider
-
newByteChannel
public SeekableByteChannel newByteChannel(Path p_path, Set<? extends OpenOption> options, FileAttribute<?>... attributes) throws IOException - Specified by:
newByteChannel
in classFileSystemProvider
- Throws:
IOException
-
newDirectoryStream
public DirectoryStream<Path> newDirectoryStream(Path directory, DirectoryStream.Filter<? super Path> filter) throws IOException - Specified by:
newDirectoryStream
in classFileSystemProvider
- Throws:
IOException
-
createDirectory
- Specified by:
createDirectory
in classFileSystemProvider
-
delete
- Specified by:
delete
in classFileSystemProvider
-
copy
- Specified by:
copy
in classFileSystemProvider
-
move
- Specified by:
move
in classFileSystemProvider
-
isSameFile
- Specified by:
isSameFile
in classFileSystemProvider
-
isHidden
- Specified by:
isHidden
in classFileSystemProvider
-
getFileStore
- Specified by:
getFileStore
in classFileSystemProvider
-
checkAccess
- Specified by:
checkAccess
in classFileSystemProvider
- Throws:
IOException
-
getFileAttributeView
@Nullable public <V extends FileAttributeView> V getFileAttributeView(Path path, Class<V> type, LinkOption... options) - Specified by:
getFileAttributeView
in classFileSystemProvider
-
readAttributes
public <A extends BasicFileAttributes> A readAttributes(Path path, Class<A> type, LinkOption... options) throws IOException - Specified by:
readAttributes
in classFileSystemProvider
- Throws:
IOException
-
readAttributes
- Specified by:
readAttributes
in classFileSystemProvider
-
setAttribute
- Specified by:
setAttribute
in classFileSystemProvider
-
toLinkPath
-