Class Detector.SimpleFileOperations
java.lang.Object
kr.motd.maven.os.Detector.SimpleFileOperations
- All Implemented Interfaces:
FileOperationProvider
- Enclosing class:
Detector
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets aInputStreamfor reading the content of the file with the specified path.
-
Constructor Details
-
SimpleFileOperations
private SimpleFileOperations()
-
-
Method Details
-
readFile
Description copied from interface:FileOperationProviderGets aInputStreamfor reading the content of the file with the specified path.- Specified by:
readFilein interfaceFileOperationProvider- Parameters:
fileName- the system-dependent file path.- Returns:
- the
InputStreamthat can be read to get the file content. - Throws:
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.
-