Package emu.grasscutter.utils
Class FileUtils
java.lang.Object
emu.grasscutter.utils.FileUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcopyResource(String resourcePath, String destination) static PathgetDataPath(String path) static PathgetDataPathTsjJsonTsv(String filename) static PathgetDataPathTsjJsonTsv(String filename, boolean fallback) static PathgetDataUserPath(String path) static PathgetExcelPath(String filename) static StringgetFileExtension(Path path) static StringgetFilenameWithoutExtension(String filename) static StringgetFilenameWithoutPath(String filename) Deprecated.static PathgetPacketPath(String path) getPathsFromResource(String folder) static PathgetPluginPath(String path) static PathgetResourcePath(String path) static PathgetScriptPath(String path) static PathgetTsjJsonTsv(Path root, String filename) static byte[]static byte[]static byte[]static byte[]readResource(String resourcePath) static InputStreamreadResourceAsStream(String resourcePath) static StringreadToString(InputStream file) static void
-
Constructor Details
-
FileUtils
public FileUtils()
-
-
Method Details
-
getDataPathTsjJsonTsv
-
getDataPathTsjJsonTsv
-
getDataPath
-
getDataUserPath
-
getPacketPath
-
getPluginPath
-
getResourcePath
-
getExcelPath
-
getTsjJsonTsv
-
getScriptPath
-
write
-
read
-
read
-
readResourceAsStream
-
readResource
-
read
-
copyResource
-
getFilenameWithoutPath
Deprecated. -
getFilenameWithoutExtension
-
getFileExtension
-
getPathsFromResource
- Throws:
URISyntaxException
-
readToString
- Throws:
IOException
-