Package echo.util
Class FindFileInClassPath
- java.lang.Object
-
- echo.util.FindFileInClassPath
-
class FindFileInClassPath extends java.lang.Object
Try to retrieve content from the java class path. Usually placed under src/main/resources
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
absoluteFilePath
private java.io.InputStream
inputStream
private PluginLog
mavenPluginLog
-
Constructor Summary
Constructors Constructor Description FindFileInClassPath(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.InputStream
getInputStream()
Return stream to file contentboolean
isFound()
Return true if stream is opened to file contentvoid
openFile(java.lang.String fileName)
Try to open a stream to the file location in the class path
-
-
-
Field Detail
-
mavenPluginLog
private final PluginLog mavenPluginLog
-
inputStream
private java.io.InputStream inputStream
-
absoluteFilePath
private java.lang.String absoluteFilePath
-
-
Constructor Detail
-
FindFileInClassPath
public FindFileInClassPath(PluginLog mavenPluginLog)
Creates a new instance of the class- Parameters:
mavenPluginLog
- Wrapper for Maven internal plugin logger
-
-
Method Detail
-
openFile
public void openFile(java.lang.String fileName)
Try to open a stream to the file location in the class path
-
isFound
public boolean isFound()
Return true if stream is opened to file content
-
getInputStream
public java.io.InputStream getInputStream()
Return stream to file content
-
getAbsoluteFilePath
public java.lang.String getAbsoluteFilePath()
-
-