Package kr.motd.maven.os
Interface FileOperationProvider
-
public interface FileOperationProviderInterface exposing file operations.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description InputStreamreadFile(String filePath)Gets aInputStreamfor reading the content of the file with the specified path.
-
-
-
Method Detail
-
readFile
InputStream readFile(String filePath) throws IOException
Gets aInputStreamfor reading the content of the file with the specified path.- Parameters:
filePath- 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.
-
-