Class FileOutputWriter

    • Constructor Detail

      • FileOutputWriter

        public FileOutputWriter​(Path path)
    • Method Detail

      • getPath

        public Path getPath()
      • target

        public String target()
        Description copied from interface: OutputWriter
        Returns a String describing the target to which the output is written (primarily for logging purposes).
        Specified by:
        target in interface OutputWriter
        Returns:
        a String describing the target to which the output is written to.
      • initialize

        public void initialize()
                        throws IOException
        Description copied from interface: OutputWriter
        Makes preparations for writing output to an output target. The default is empty and should be overridden by the implementation if an initialize() step is needed before actual data is written.
        Specified by:
        initialize in interface OutputWriter
        Throws:
        IOException
      • close

        public void close()
                   throws IOException
        Description copied from interface: OutputWriter
        Closes output target. The default is empty and should be overridden by the implementation if a close() step is needed after the data is written (to cleanly close off the target opened during initialize()).
        Specified by:
        close in interface OutputWriter
        Throws:
        IOException
      • write

        public void write​(String output)
                   throws IOException
        Description copied from interface: OutputWriter
        Writes single piece of information to output target.
        Specified by:
        write in interface OutputWriter
        Parameters:
        output - the output to be written to the output target
        Throws:
        IOException