Package kr.motd.maven.os
Class Detector.SimpleFileOperations
- java.lang.Object
-
- kr.motd.maven.os.Detector.SimpleFileOperations
-
- All Implemented Interfaces:
FileOperationProvider
- Enclosing class:
- Detector
private static class Detector.SimpleFileOperations extends java.lang.Object implements FileOperationProvider
-
-
Constructor Summary
Constructors Modifier Constructor Description private
SimpleFileOperations()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.io.InputStream
readFile(java.lang.String fileName)
Gets aInputStream
for reading the content of the file with the specified path.
-
-
-
Method Detail
-
readFile
public java.io.InputStream readFile(java.lang.String fileName) throws java.io.IOException
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:
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.
-
-