Class AppendingFsWorker

  • All Implemented Interfaces:
    FsWorker

    public class AppendingFsWorker
    extends StandardWorker
    Implementation of FsWorker that appeneds to the file for any write operations.

    In the adapter configuration file this class is aliased as fs-append-file which is the preferred alternative to the fully qualified classname when building your configuration.

    • Constructor Detail

      • AppendingFsWorker

        public AppendingFsWorker()
    • Method Detail

      • put

        public void put​(byte[] data,
                        java.io.File file)
                 throws FsException
        Description copied from interface: FsWorker

        Writes data to the specified file. If the named file already exists or if part of the path doesn't exist a FsException is thrown.

        Specified by:
        put in interface FsWorker
        Overrides:
        put in class StandardWorker
        Parameters:
        data - the data to write
        file - the file to write to
        Throws:
        FsException - wrapping any underlying Exception that may occur