Class TextFileOutput

  • All Implemented Interfaces:
    FileOutput<java.lang.String>, Output<java.lang.String>, java.io.Closeable, java.lang.AutoCloseable

    public class TextFileOutput
    extends TextStreamOutput
    implements FileOutput<java.lang.String>
    Text file based lines output
    • Constructor Detail

      • TextFileOutput

        public TextFileOutput()
                       throws java.io.IOException
        Throws:
        java.io.IOException
      • TextFileOutput

        public TextFileOutput​(java.nio.file.Path filePath)
                       throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • getInput

        public Input<java.lang.String> getInput()
                                         throws java.io.IOException
        Description copied from interface: Output
        Make a Input instance from this.
        Specified by:
        getInput in interface Output<java.lang.String>
        Returns:
        Input instance containing the items which had been written to this output.
        Throws:
        java.io.IOException
      • getFilePath

        public java.nio.file.Path getFilePath()
        Specified by:
        getFilePath in interface FileOutput<java.lang.String>