Package echo.util

Class FindFileInAbsolutePath


  • class FindFileInAbsolutePath
    extends java.lang.Object
    Try to retrieve content from an absolute file path. Example /usr/bin/content.txt
    • 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 content
      boolean isFound()
      Return true if stream is opened to file path
      void openFile​(java.io.File absoluteFilePath)
      Try to open a stream to the file location
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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