public class DefaultConditionalDmsWriter extends Object implements ConditionalDmsWriter
| Constructor and Description |
|---|
DefaultConditionalDmsWriter(File directory) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(Document document)
Validates and adds a
Document to the export-archive. |
void |
addCondition(SplitCondition condition) |
void |
close() |
protected File |
getCurrentFile() |
List<File> |
getFiles()
Returns the list of export-archives files a ConditionalDmsWriter has created during export.
|
protected File |
getNextFile() |
protected DmsWriter |
getNextWriter() |
protected DmsWriter |
getWriter() |
protected void |
setWriter(DmsWriter writer) |
protected void |
split() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitadd, add, addQuietlypublic DefaultConditionalDmsWriter(File directory) throws DmsExchangeException
DmsExchangeExceptionpublic void addCondition(SplitCondition condition)
protected DmsWriter getWriter()
protected void setWriter(DmsWriter writer)
protected File getCurrentFile()
public void add(Document document) throws DmsExchangeException
DmsWriterDocument to the export-archive.add in interface DmsWriterDmsExchangeException - Encapsulating parent Exception for erroneous behaviourprotected void split()
throws DmsExchangeException
DmsExchangeExceptionprotected DmsWriter getNextWriter() throws DmsExchangeException
DmsExchangeExceptionprotected File getNextFile() throws DmsExchangeException
DmsExchangeExceptionpublic void close()
throws Exception
close in interface AutoCloseableExceptionpublic List<File> getFiles()
ConditionalDmsWritergetFiles in interface ConditionalDmsWriterCopyright © 2015. All rights reserved.