public class XmlDataParser<C extends ApplicationContext> extends AbstractAsyncExecutable<C>
childTaskRef, isTestMode, monitorController, resultRef, stateFlag
Constructor and Description |
---|
XmlDataParser(C ctx,
java.io.File file,
boolean isValidating) |
XmlDataParser(C ctx,
java.io.File file,
XmlTagHandler handler,
boolean isValidating) |
XmlDataParser(C ctx,
java.io.InputStream inStream,
XmlTagHandler handler,
boolean isValidating) |
XmlDataParser(C ctx,
LogChannel logCh,
java.io.File file,
XmlTagHandler handler,
boolean isValidating) |
XmlDataParser(C ctx,
LogChannel logCh,
java.io.InputStream inStream,
XmlTagHandler handler,
boolean isValidating) |
Modifier and Type | Method and Description |
---|---|
protected void |
doOnCancel()
This method is called after having detected cancellation.
|
void |
executeAsync()
Contains the code to be executed asynchronously.
|
XmlDataCollector |
getCollector() |
FileInfo |
getInputFileInfo() |
javax.xml.parsers.SAXParser |
getSAXParser() |
protected void |
logClosed(FileInfo fileInfo)
Is called after the file has been closed
|
protected void |
logOpen(FileInfo fileInfo)
Is called when the file is being opened
|
void |
setHandler(XmlTagHandler handler) |
addMonitor, checkCancelled, checkForErrorAndRethrow, clearMonitors, createRunStateFlag, doOnFailure, execute, executeSubTask, getError, getMaxProgressSteps, getMonitorCount, getMonitors, getName, getProgressStepCount, getResult, getRunStateFlag, getTaskId, getType, handleCancellation, handleFailure, handleFinish, handleStart, handleSuccess, hasError, hasMonitor, isCancellable, notifyProceeded, registerTaskStateChange, removeMonitor, resetProgress, setCancellable, setLogLevel, setMaxProgressSteps, setMonitor, setName, setName, setResult, setRunStateFlag, setTaskId, setType, shouldFireMonitor, sleepChecked, wasCancelled
getApplicationContext, getLogChannel, isLogDebug, isLogVerbose, logDebug, logDump, logError, logError, logFatal, logInfo, logVerbose, logWarning, setLogChannel
configureDumpHeadlineLength, configureDumpMaxElementsPrinted, copyDumpStringValues, copyToStringValues, createDumpHeader, toDumpString, toDumpString, toString, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getApplicationContext
getLogChannel, isLogDebug, isLogVerbose, logDebug, logDump, logError, logError, logFatal, logInfo, logVerbose, logWarning, setLogChannel
public XmlDataParser(C ctx, java.io.File file, boolean isValidating)
public XmlDataParser(C ctx, java.io.File file, XmlTagHandler handler, boolean isValidating)
public XmlDataParser(C ctx, LogChannel logCh, java.io.File file, XmlTagHandler handler, boolean isValidating)
public XmlDataParser(C ctx, java.io.InputStream inStream, XmlTagHandler handler, boolean isValidating)
public XmlDataParser(C ctx, LogChannel logCh, java.io.InputStream inStream, XmlTagHandler handler, boolean isValidating)
public void setHandler(XmlTagHandler handler)
protected void logOpen(FileInfo fileInfo)
protected void logClosed(FileInfo fileInfo)
public FileInfo getInputFileInfo()
public javax.xml.parsers.SAXParser getSAXParser()
public final void executeAsync() throws java.lang.Exception
AsyncExecutable
Runnable.run()
for async execution.executeAsync
in interface AsyncExecutable<C extends ApplicationContext>
executeAsync
in class AbstractAsyncExecutable<C extends ApplicationContext>
java.lang.Exception
for synchronous execution
public XmlDataCollector getCollector()
protected void doOnCancel()
AbstractAsyncExecutable
doOnCancel
in class AbstractAsyncExecutable<C extends ApplicationContext>
Copyright © 2014 EsprIT-Systems. All Rights Reserved.