Nuxeo Enterprise Platform 5.4

org.nuxeo.ecm.platform.publisher.remoting.marshaling.io
Class SingleXMlDocumentReader

java.lang.Object
  extended by org.nuxeo.ecm.core.io.impl.AbstractDocumentReader
      extended by org.nuxeo.ecm.platform.publisher.remoting.marshaling.io.SingleXMlDocumentReader
All Implemented Interfaces:
DocumentReader

public class SingleXMlDocumentReader
extends AbstractDocumentReader

DocumentModelReader that reads the DocumentModel from a String.

Author:
tiry

Constructor Summary
SingleXMlDocumentReader(java.lang.String data)
           
 
Method Summary
 void close()
          Closes the reader.
 ExportedDocument read()
          Reads a single document.
 
Methods inherited from class org.nuxeo.ecm.core.io.impl.AbstractDocumentReader
read
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SingleXMlDocumentReader

public SingleXMlDocumentReader(java.lang.String data)
                        throws org.dom4j.DocumentException
Throws:
org.dom4j.DocumentException
Method Detail

read

public ExportedDocument read()
                      throws java.io.IOException
Description copied from interface: DocumentReader
Reads a single document.

Specified by:
read in interface DocumentReader
Specified by:
read in class AbstractDocumentReader
Returns:
the document read or null if there are no more documents to read
Throws:
java.io.IOException

close

public void close()
Description copied from interface: DocumentReader
Closes the reader.


Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.