Package echo.util
Class FindFileInAbsolutePath
- java.lang.Object
-
- echo.util.FindFileInAbsolutePath
-
class FindFileInAbsolutePath extends java.lang.Object
Try to retrieve content from an absolute file path. Example /usr/bin/content.txt
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
absoluteFilePath
private java.io.FileInputStream
inputStream
private PluginLog
mavenPluginLog
-
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.String
getAbsoluteFilePath()
java.io.FileInputStream
getInputStream()
Return stream to file path contentboolean
isFound()
Return true if stream is opened to file pathvoid
openFile(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
-
-