Nuxeo Enterprise Platform 5.4

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(java.io.File file)
           
XMLDocumentTreeWriter(java.io.OutputStream out)
           
 
Method Summary
 void close()
          Closes the writer.
 DocumentTranslationMap write(java.util.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 java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLDocumentTreeWriter

public XMLDocumentTreeWriter(java.io.File file)
                      throws java.io.IOException
Throws:
java.io.IOException

XMLDocumentTreeWriter

public XMLDocumentTreeWriter(java.io.OutputStream out)
Method Detail

write

public DocumentTranslationMap write(ExportedDocument doc)
                             throws java.io.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:
java.io.IOException

write

public DocumentTranslationMap write(ExportedDocument[] docs)
                             throws java.io.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:
java.io.IOException

write

public DocumentTranslationMap write(java.util.Collection<ExportedDocument> docs)
                             throws java.io.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:
java.io.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 Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.