Class IO

java.lang.Object
org.webpki.util.IO

public class IO extends Object
Collection of file I/O functions.

Unlike java.io and java.nio classes, the methods declared here, throw UncheckedIOException. The intended use cases include client applications and test programs. Server applications should probably stick to the standard java API.

  • Method Details

    • readFile

      public static byte[] readFile(String fileName)
    • writeFile

      public static void writeFile(String fileName, byte[] bytes)
    • writeFile

      public static void writeFile(String fileName, String text)
    • getByteArrayFromInputStream

      public static byte[] getByteArrayFromInputStream(InputStream inputStream)