public class DocumentModelWriter extends AbstractDocumentModelWriter
Constructor and Description |
---|
DocumentModelWriter(CoreSession session,
String parentPath) |
DocumentModelWriter(CoreSession session,
String parentPath,
int saveInterval) |
Modifier and Type | Method and Description |
---|---|
DocumentTranslationMap |
write(ExportedDocument xdoc)
Writes a single document.
|
close, getSaveInterval, getTranslationMap, setSaveInterval
createCompactFormat, createPrettyPrint, write, write
public DocumentModelWriter(CoreSession session, String parentPath)
session
- the session to the repository where to writeparentPath
- where to write the tree. this document will be used as the parent of all top level documents
passed as input. Note that you may havepublic DocumentModelWriter(CoreSession session, String parentPath, int saveInterval)
public DocumentTranslationMap write(ExportedDocument xdoc) throws IOException
DocumentWriter
write
in interface DocumentWriter
write
in class AbstractDocumentWriter
xdoc
- the document to writeIOException
Copyright © 2015 Nuxeo SA. All rights reserved.