Package org.lazywizard.lazylib
Class IOUtils
Object
IOUtils
Contains classes for reading and writing files within the game's classloader restrictions.
- Since:
- 2.6
- Author:
- LazyWizard
-
Method Summary
Modifier and TypeMethodDescriptionstatic byte[]readAllBytes(String filePath) This is a port ofFiles.readAllBytes(Path)that has been modified to work within the game's classloader restrictions.
-
Method Details
-
readAllBytes
This is a port ofFiles.readAllBytes(Path)that has been modified to work within the game's classloader restrictions.- Parameters:
filePath- The local file path of the file to read.- Returns:
- The contents of the file at
filePathas a byte array. - Throws:
IOException- Since:
- 2.6
-