Interface IFileReader

All Known Implementing Classes:
FileReader

public interface IFileReader
  • Method Summary

    Modifier and Type
    Method
    Description
    byte[]
    Reads a file from disk.
  • Method Details

    • readFile

      byte[] readFile(String path) throws IOException
      Reads a file from disk.

      Protects against some common negative cases:

      • If path is bad, log and return an empty byte array
      • If file does not exist, log and return an empty byte array
      Throws:
      IOException