Package kr.motd.maven.os
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 aInputStream
for reading the content of the file with the specified path.
-
Constructor Details
-
SimpleFileOperations
private SimpleFileOperations()
-
-
Method Details
-
readFile
Description copied from interface:FileOperationProvider
Gets aInputStream
for reading the content of the file with the specified path.- Specified by:
readFile
in interfaceFileOperationProvider
- Parameters:
fileName
- the system-dependent file path.- Returns:
- the
InputStream
that 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.
-