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 pPath, AccessMode... pModes) void
copy
(Path pSource, Path pTarget, CopyOption... pOptions) void
createDirectory
(Path pPath, FileAttribute<?>... pAttributes) void
<V extends FileAttributeView>
VgetFileAttributeView
(Path pPath, Class<V> pType, LinkOption... pOptions) getFileStore
(Path pPath) getFileSystem
(URI pUri) boolean
boolean
isSameFile
(Path pPath, Path pPath2) void
move
(Path pSource, Path pTarget, CopyOption... pOptions) newByteChannel
(Path pPath, Set<? extends OpenOption> pOptions, FileAttribute<?>... pAttributes) newDirectoryStream
(Path pDirectory, DirectoryStream.Filter<? super Path> pFilter) newFileSystem
(URI pUri, Map<String, ?> pEnviroment) <A extends BasicFileAttributes>
AreadAttributes
(Path pPath, Class<A> pType, LinkOption... pOptions) readAttributes
(Path pPath, String pAttributes, LinkOption... pOptions) void
setAttribute
(Path pPath, String pAttribute, Object pValue, LinkOption... pOptions) private static LinkFSPath
toLinkPath
(Path pPath) 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 pPath, Set<? extends OpenOption> pOptions, FileAttribute<?>... pAttributes) throws IOException - Specified by:
newByteChannel
in classFileSystemProvider
- Throws:
IOException
-
newDirectoryStream
public DirectoryStream<Path> newDirectoryStream(Path pDirectory, DirectoryStream.Filter<? super Path> pFilter) 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 pPath, Class<V> pType, LinkOption... pOptions) - Specified by:
getFileAttributeView
in classFileSystemProvider
-
readAttributes
public <A extends BasicFileAttributes> A readAttributes(Path pPath, Class<A> pType, LinkOption... pOptions) throws IOException - Specified by:
readAttributes
in classFileSystemProvider
- Throws:
IOException
-
readAttributes
- Specified by:
readAttributes
in classFileSystemProvider
-
setAttribute
- Specified by:
setAttribute
in classFileSystemProvider
-
toLinkPath
-