Quilt Loader 1
Loading...
Searching...
No Matches
org.quiltmc.loader.api.FasterFileSystem Interface Reference

A type of FileSystem which provides various replacements for Files methods which may execute much faster than their Files counterparts. More...

Inheritance diagram for org.quiltmc.loader.api.FasterFileSystem:
org.quiltmc.loader.api.CachedFileSystem org.quiltmc.loader.api.ExtendedFileSystem org.quiltmc.loader.impl.filesystem.QuiltJoinedFileSystem org.quiltmc.loader.impl.filesystem.QuiltMemoryFileSystem org.quiltmc.loader.impl.filesystem.ReadOnlyFileSystem org.quiltmc.loader.impl.filesystem.QuiltUnifiedFileSystem org.quiltmc.loader.impl.filesystem.QuiltZipFileSystem org.quiltmc.loader.impl.filesystem.QuiltZipFileSystem

Public Member Functions

default Path createFile (Path path, FileAttribute<?>... attrs) throws IOException
 Either the same speed as, or slightly faster than Files#createFile(Path, FileAttribute...).
default Path createDirectories (Path dir, FileAttribute<?>... attrs) throws IOException
default Path copy (Path source, Path target, CopyOption... options) throws IOException
default boolean isSymbolicLink (Path path)
default boolean isDirectory (Path path, LinkOption... options)
default boolean isRegularFile (Path path, LinkOption[] options)
default boolean exists (Path path, LinkOption... options)
 Either the same speed as, or faster than Files#exists(Path, LinkOption...).
default boolean notExists (Path path, LinkOption... options)
 Either the same speed as, or faster than Files#notExists(Path, LinkOption...).
default boolean isReadable (Path path)
default boolean isWritable (Path path)
default boolean isExecutable (Path path)
default Stream< Path > list (Path dir) throws IOException
default Collection<? extends Path > getChildren (Path dir) throws IOException

Detailed Description

A type of FileSystem which provides various replacements for Files methods which may execute much faster than their Files counterparts.

Generally you should use FasterFiles instead of this.

Member Function Documentation

◆ copy()

default Path org.quiltmc.loader.api.FasterFileSystem.copy ( Path source,
Path target,
CopyOption... options ) throws IOException
inline
Parameters
sourceA Path, which might not be in this FileSystem.
targetA Path which must be from this FileSystem
Returns
target

◆ createFile()

default Path org.quiltmc.loader.api.FasterFileSystem.createFile ( Path path,
FileAttribute<?>... attrs ) throws IOException
inline

Either the same speed as, or slightly faster than Files#createFile(Path, FileAttribute...).

Otherwise this has the same semantics as Files#createFile(Path, FileAttribute...).

See also
FasterFiles#createFile(Path, FileAttribute...)

Implemented in org.quiltmc.loader.impl.filesystem.ReadOnlyFileSystem.

◆ exists()

default boolean org.quiltmc.loader.api.FasterFileSystem.exists ( Path path,
LinkOption... options )
inline

◆ notExists()

default boolean org.quiltmc.loader.api.FasterFileSystem.notExists ( Path path,
LinkOption... options )
inline

Either the same speed as, or faster than Files#notExists(Path, LinkOption...).

Otherwise this has the same semantics as Files#notExists(Path, LinkOption...).

See also
FasterFiles#notExists(Path, LinkOption...)

The documentation for this interface was generated from the following file:
  • src/main/java/org/quiltmc/loader/api/FasterFileSystem.java