Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.core.io.impl.plugins
Class XMLDocumentTreeWriter

java.lang.Object
  extended by org.nuxeo.ecm.core.io.impl.AbstractDocumentWriter
      extended by org.nuxeo.ecm.core.io.impl.plugins.XMLDocumentWriter
          extended by org.nuxeo.ecm.core.io.impl.plugins.XMLDocumentTreeWriter
All Implemented Interfaces:
DocumentWriter

public class XMLDocumentTreeWriter
extends XMLDocumentWriter


Constructor Summary
XMLDocumentTreeWriter(File file)
           
XMLDocumentTreeWriter(OutputStream out)
           
 
Method Summary
 void close()
          Closes the writer.
 DocumentTranslationMap write(Collection<ExportedDocument> docs)
          Writes documents from the given collection.
 DocumentTranslationMap write(ExportedDocument doc)
          Writes a single document.
 DocumentTranslationMap write(ExportedDocument[] docs)
          Writes an array of documents.
 
Methods inherited from class org.nuxeo.ecm.core.io.impl.AbstractDocumentWriter
createCompactFormat, createPrettyPrint
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLDocumentTreeWriter

public XMLDocumentTreeWriter(File file)
                      throws IOException
Throws:
IOException

XMLDocumentTreeWriter

public XMLDocumentTreeWriter(OutputStream out)
Method Detail

write

public DocumentTranslationMap write(ExportedDocument doc)
                             throws IOException
Description copied from interface: DocumentWriter
Writes a single document.

Specified by:
write in interface DocumentWriter
Overrides:
write in class XMLDocumentWriter
Parameters:
doc - the document to write
Returns:
the translation map.
Throws:
IOException

write

public DocumentTranslationMap write(ExportedDocument[] docs)
                             throws IOException
Description copied from interface: DocumentWriter
Writes an array of documents.

Specified by:
write in interface DocumentWriter
Overrides:
write in class AbstractDocumentWriter
Parameters:
docs - the array to write
Returns:
the translation map.
Throws:
IOException

write

public DocumentTranslationMap write(Collection<ExportedDocument> docs)
                             throws IOException
Description copied from interface: DocumentWriter
Writes documents from the given collection.

Specified by:
write in interface DocumentWriter
Overrides:
write in class AbstractDocumentWriter
Parameters:
docs - the documents to write
Returns:
the translation map.
Throws:
IOException

close

public void close()
Description copied from interface: DocumentWriter
Closes the writer.

Specified by:
close in interface DocumentWriter
Overrides:
close in class XMLDocumentWriter

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.