public class XmlImportProcessor extends ImporterProcessor
| Modifier and Type | Field and Description |
|---|---|
protected Object |
current
actually the current GPathResult, but could be any object *
|
protected XmlSlurperSpec |
spec |
protected groovy.util.XmlSlurper |
xmlSlurper |
cancelled, errorCount, importer, lastError, rowCount| Constructor and Description |
|---|
XmlImportProcessor(XmlSlurperSpec spec,
Importer importer) |
| Modifier and Type | Method and Description |
|---|---|
Object |
getCurrent() |
XmlSlurperSpec |
getSpec() |
groovy.util.XmlSlurper |
getXmlSlurper() |
protected void |
importEach() |
void |
importFrom(Closeable aReader)
API - this method starts the import process.
|
void |
release() |
getErrorCount, getErrorWriter, getImporter, getLastError, getRowCount, handleException, handleRowException, isCancelled, log, logFinished, setCancelled, setErrorWriter, setLastErrorprotected final XmlSlurperSpec spec
protected groovy.util.XmlSlurper xmlSlurper
protected Object current
public XmlImportProcessor(XmlSlurperSpec spec, Importer importer)
public XmlSlurperSpec getSpec()
getSpec in class ImporterProcessorpublic void importFrom(Closeable aReader) throws ImporterException
importFrom in class ImporterProcessoraReader - - reader to read the import data from.ExceptionImporterExceptionprotected void importEach()
throws ImporterException
ImporterExceptionpublic void release()
release in class ImporterProcessorpublic Object getCurrent()
public groovy.util.XmlSlurper getXmlSlurper()
Copyright © 2008-2016. All Rights Reserved.