Package echo.util
Class FindFileInAbsolutePath
- java.lang.Object
-
- echo.util.FindFileInAbsolutePath
-
class FindFileInAbsolutePath extends java.lang.ObjectTry to retrieve content from an absolute file path. Example /usr/bin/content.txt
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.StringabsoluteFilePathprivate java.io.FileInputStreaminputStreamprivate PluginLogmavenPluginLog
-
Constructor Summary
Constructors Constructor Description FindFileInAbsolutePath(PluginLog mavenPluginLog)Creates a new instance of the class
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetAbsoluteFilePath()java.io.FileInputStreamgetInputStream()Return stream to file path contentbooleanisFound()Return true if stream is opened to file pathvoidopenFile(java.io.File absoluteFilePath)Try to open a stream to the file location
-
-
-
Field Detail
-
mavenPluginLog
private final PluginLog mavenPluginLog
-
inputStream
private java.io.FileInputStream inputStream
-
absoluteFilePath
private java.lang.String absoluteFilePath
-
-
Constructor Detail
-
FindFileInAbsolutePath
public FindFileInAbsolutePath(PluginLog mavenPluginLog)
Creates a new instance of the class- Parameters:
mavenPluginLog- Wrapper for Maven internal plugin logger
-
-
Method Detail
-
openFile
public void openFile(java.io.File absoluteFilePath)
Try to open a stream to the file location
-
isFound
public boolean isFound()
Return true if stream is opened to file path
-
getAbsoluteFilePath
public java.lang.String getAbsoluteFilePath()
-
getInputStream
public java.io.FileInputStream getInputStream()
Return stream to file path content
-
-