Package kr.motd.maven.os
Interface FileOperationProvider
- All Known Implementing Classes:
Detector.SimpleFileOperations
public interface FileOperationProvider
Interface exposing file operations.
-
Method Summary
Modifier and TypeMethodDescriptionGets aInputStream
for reading the content of the file with the specified path.
-
Method Details
-
readFile
Gets aInputStream
for reading the content of the file with the specified path.- Parameters:
filePath
- 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.
-