Interface ArchiveObjectAppender
-
- All Superinterfaces:
Destroyable,OptionHandler
- All Known Implementing Classes:
AbstractArchiveObjectAppender,BytesObjectAppender,SerializedObjectAppender,StringObjectAppender
public interface ArchiveObjectAppender extends OptionHandler
Interface for classes that append objects to archives.- Author:
- fracpete (fracpete at waikato dot ac dot nz)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancanProcess(Object obj)Whether the appender can handle this particular object.Stringprocess(ArchiveManager manager, Object obj, String name)Processes the given object.-
Methods inherited from interface adams.core.Destroyable
destroy
-
Methods inherited from interface adams.core.option.OptionHandler
cleanUpOptions, defineOptions, getOptionManager, toCommandLine
-
-
-
-
Method Detail
-
canProcess
boolean canProcess(Object obj)
Whether the appender can handle this particular object.- Parameters:
obj- the object to check- Returns:
- true if the object can be handled
-
process
String process(ArchiveManager manager, Object obj, String name)
Processes the given object.- Parameters:
manager- the contextobj- the object to processname- the name to use in the archive- Returns:
- null if successfully added, otherwise error message
-
-