public class XMLDirectoryWriter extends AbstractDocumentWriter
Modifier and Type | Field and Description |
---|---|
protected boolean |
skipBlobs
Allow to skip the blob from export : useful in case of a Nuxeo 2 Nuxeo migration
|
Constructor and Description |
---|
XMLDirectoryWriter(File destination) |
XMLDirectoryWriter(String destinationPath) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the writer.
|
Object |
getDestination()
Gives the destination where the XML file will be generated.
|
void |
setDestination(File destination)
Sets the destination where the XML file will be generated.
|
void |
setSkipBlobs(boolean skipBlobs) |
boolean |
skipBlobs() |
DocumentTranslationMap |
write(ExportedDocument doc)
Writes a single document.
|
createCompactFormat, createPrettyPrint, write, write
protected boolean skipBlobs
public XMLDirectoryWriter(String destinationPath)
public XMLDirectoryWriter(File destination)
public boolean skipBlobs()
public void setSkipBlobs(boolean skipBlobs)
public Object getDestination()
public void setDestination(File destination)
public void close()
DocumentWriter
public DocumentTranslationMap write(ExportedDocument doc) throws IOException
DocumentWriter
write
in interface DocumentWriter
write
in class AbstractDocumentWriter
doc
- the document to writeIOException
Copyright © 2018 Nuxeo. All rights reserved.