org.nuxeo.ecm.platform.publisher.remoting.marshaling.io
Class SingleXMlDocumentReader
java.lang.Object
org.nuxeo.ecm.core.io.impl.AbstractDocumentReader
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
SingleXMlDocumentReader
public SingleXMlDocumentReader(String data)
throws org.dom4j.DocumentException
- Throws:
org.dom4j.DocumentException
read
public ExportedDocument read()
throws 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:
IOException
close
public void close()
- Description copied from interface:
DocumentReader
- Closes the reader.
Copyright © 2011 Nuxeo SAS. All Rights Reserved.