Class IOUtils

Object
IOUtils

public class IOUtils extends Object
Contains classes for reading and writing files within the game's classloader restrictions.
Since:
2.6
Author:
LazyWizard
  • Method Details

    • readAllBytes

      public static byte[] readAllBytes(String filePath) throws IOException
      This is a port of Files.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 filePath as a byte array.
      Throws:
      IOException
      Since:
      2.6