Package echo.util

Class FindFileInClassPath

java.lang.Object
echo.util.FindFileInClassPath

class FindFileInClassPath extends Object
Try to retrieve content from the java class path. Usually placed under src/main/resources
  • Field Details

    • mavenPluginLog

      private final PluginLog mavenPluginLog
    • inputStream

      private InputStream inputStream
    • absoluteFilePath

      private String absoluteFilePath
  • Constructor Details

    • FindFileInClassPath

      public FindFileInClassPath(PluginLog mavenPluginLog)
      Creates a new instance of the class
      Parameters:
      mavenPluginLog - Wrapper for Maven internal plugin logger
  • Method Details

    • openFile

      public void openFile(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 InputStream getInputStream()
      Return stream to file content
    • getAbsoluteFilePath

      public String getAbsoluteFilePath()