Nuxeo ECM Projects 5.4.3-SNAPSHOT

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

java.lang.Object
  extended by org.nuxeo.ecm.core.io.impl.AbstractDocumentReader
      extended by org.nuxeo.ecm.core.io.impl.plugins.XMLDirectoryReader
All Implemented Interfaces:
DocumentReader

public class XMLDirectoryReader
extends AbstractDocumentReader

Author:
bs@nuxeo.com

Constructor Summary
XMLDirectoryReader(File source)
           
XMLDirectoryReader(String sourcePath)
           
 
Method Summary
 void close()
          Closes the reader.
 Object getSource()
           
 ExportedDocument read()
          Reads a single document.
 void setSource(File source)
           
 
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

XMLDirectoryReader

public XMLDirectoryReader(String sourcePath)

XMLDirectoryReader

public XMLDirectoryReader(File source)
Method Detail

getSource

public Object getSource()

setSource

public void setSource(File source)

close

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


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

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.