Class AppendTo

  • All Implemented Interfaces:
    Output

    public final class AppendTo
    extends Object
    implements Output
    Output that appends content to a given file.

    There is no thread-safety guarantee.

    Since:
    1.0
    • Constructor Detail

      • AppendTo

        public AppendTo​(Path path)
        Ctor.
        Parameters:
        path - Path as a source of a File.
      • AppendTo

        public AppendTo​(File src)
        Ctor.
        Parameters:
        src - File to which content will be appended.
    • Method Detail

      • stream

        public OutputStream stream()
                            throws Exception
        Description copied from interface: Output
        Get write access to it.
        Specified by:
        stream in interface Output
        Returns:
        OutputStream to write to
        Throws:
        Exception - If something goes wrong