Class Detector.SimpleFileOperations

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.io.InputStream readFile​(java.lang.String fileName)
      Gets a InputStream for reading the content of the file with the specified path.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SimpleFileOperations

        private SimpleFileOperations()
    • Method Detail

      • readFile

        public java.io.InputStream readFile​(java.lang.String fileName)
                                     throws java.io.IOException
        Description copied from interface: FileOperationProvider
        Gets a InputStream for reading the content of the file with the specified path.
        Specified by:
        readFile in interface FileOperationProvider
        Parameters:
        fileName - the system-dependent file path.
        Returns:
        the InputStream that can be read to get the file content.
        Throws:
        java.io.IOException - if the file does not exist, is a directory rather than a regular file, or for some other reason cannot be opened for reading.