Package net.fabricmc.loom.util
Class FileSystemUtil.Delegate
java.lang.Object
net.fabricmc.loom.util.FileSystemUtil.Delegate
- All Implemented Interfaces:
AutoCloseable,Supplier<FileSystem>
- Enclosing class:
FileSystemUtil
public static final class FileSystemUtil.Delegate
extends Object
implements AutoCloseable, Supplier<FileSystem>
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()<T> TfromInputStream(IOFunction<InputStream, T> function, String path, String... more) fs()get()getRoot()byte[]readAllBytes(String path) readString(String path) @Nullable net.fabricmc.tinyremapper.FileSystemReference@Nullable URIuri()
-
Method Details
-
reference
public @Nullable net.fabricmc.tinyremapper.FileSystemReference reference() -
uri
-
getPath
-
getRoot
-
readAllBytes
- Throws:
IOException
-
fromInputStream
public <T> T fromInputStream(IOFunction<InputStream, T> function, String path, String... more) throws IOException- Throws:
IOException
-
readString
- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Throws:
IOException
-
get
- Specified by:
getin interfaceSupplier<FileSystem>
-
fs
-