public class XMLDirectoryWriter extends AbstractDocumentWriter
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.
|
DocumentTranslationMap |
write(ExportedDocument doc)
Writes a single document.
|
createCompactFormat, createPrettyPrint, write, write
public XMLDirectoryWriter(String destinationPath)
public XMLDirectoryWriter(File destination)
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 © 2011 Nuxeo SA. All Rights Reserved.