Package com.adaptris.fs
Class AppendingFsWorker
- java.lang.Object
-
- com.adaptris.fs.StandardWorker
-
- com.adaptris.fs.AppendingFsWorker
-
- All Implemented Interfaces:
FsWorker
public class AppendingFsWorker extends StandardWorker
Implementation ofFsWorker
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 Summary
Constructors Constructor Description AppendingFsWorker()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
put(byte[] data, java.io.File file)
Writesdata
to the specifiedfile
.-
Methods inherited from class com.adaptris.fs.StandardWorker
get, wrapException
-
-
-
-
Method Detail
-
put
public void put(byte[] data, java.io.File file) throws FsException
Description copied from interface:FsWorker
Writes
data
to the specifiedfile
. If the named file already exists or if part of the path doesn't exist aFsException
is thrown.- Specified by:
put
in interfaceFsWorker
- Overrides:
put
in classStandardWorker
- Parameters:
data
- the data to writefile
- the file to write to- Throws:
FsException
- wrapping any underlying Exception that may occur
-
-