Package echo.util

Class FindFileInAbsolutePath

java.lang.Object
echo.util.FindFileInAbsolutePath

class FindFileInAbsolutePath extends Object
Try to retrieve content from an absolute file path. Example /usr/bin/content.txt
  • Field Details

    • mavenPluginLog

      private final PluginLog mavenPluginLog
    • inputStream

      private FileInputStream inputStream
    • absoluteFilePath

      private String absoluteFilePath
  • Constructor Details

    • FindFileInAbsolutePath

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

    • openFile

      public void openFile(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 String getAbsoluteFilePath()
    • getInputStream

      public FileInputStream getInputStream()
      Return stream to file path content