Class PicaXmlParserThread
- java.lang.Object
-
- java.lang.Thread
-
- de.gwdg.metadataqa.marc.utils.pica.reader.xml.PicaXmlParserThread
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
-
-
Field Summary
-
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
-
-
Constructor Summary
Constructors Constructor Description PicaXmlParserThread(org.marc4j.RecordStack queue)Creates a new instance and registers theRecordQueue.PicaXmlParserThread(org.marc4j.RecordStack queue, InputSource input, String idField, char idCode)Creates a new instance and registers theRecordQueueand theInputStream.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InputSourcegetInputSource()Returns the input stream.TransformerHandlergetTransformerHandler()Returns the content handler to transform the source to MARCXML.voidrun()Creates a newMarcXmlHandlerinstance, registers theRecordQueueand sends theInputStreamto theMarcXmlParserparser.voidsetInputSource(InputSource input)Sets the input stream.voidsetTransformerHandler(TransformerHandler th)Sets the content handler to transform the source to MARCXML.-
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
-
-
-
-
Constructor Detail
-
PicaXmlParserThread
public PicaXmlParserThread(org.marc4j.RecordStack queue)
Creates a new instance and registers theRecordQueue.- Parameters:
queue- the record queue
-
PicaXmlParserThread
public PicaXmlParserThread(org.marc4j.RecordStack queue, InputSource input, String idField, char idCode)Creates a new instance and registers theRecordQueueand theInputStream.- Parameters:
queue- the record queueinput- the input stream
-
-
Method Detail
-
getTransformerHandler
public TransformerHandler getTransformerHandler()
Returns the content handler to transform the source to MARCXML.- Returns:
- TransformerHandler - the transformation content handler
-
setTransformerHandler
public void setTransformerHandler(TransformerHandler th)
Sets the content handler to transform the source to MARCXML.- Parameters:
th- - the transformation content handler
-
getInputSource
public InputSource getInputSource()
Returns the input stream.- Returns:
- InputSource - the input source
-
setInputSource
public void setInputSource(InputSource input)
Sets the input stream.- Parameters:
input- the input stream
-
-