|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
org.marc4j.MarcXmlParserThread
public class MarcXmlParserThread
Extends Thread
to produce Record
objects from
MARCXML data.
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 | |
---|---|
MarcXmlParserThread(RecordStack queue)
Creates a new instance and registers the RecordQueue . |
|
MarcXmlParserThread(RecordStack queue,
InputSource input)
Creates a new instance and registers the RecordQueue and
the InputStream . |
Method Summary | |
---|---|
InputSource |
getInputSource()
Returns the input stream. |
TransformerHandler |
getTransformerHandler()
Returns the content handler to transform the source to MARCXML. |
void |
run()
Creates a new MarcXmlHandler instance, registers the
RecordQueue and sends the InputStream to
the MarcXmlParser parser. |
void |
setInputSource(InputSource input)
Sets the input stream. |
void |
setTransformerHandler(TransformerHandler th)
Sets the content handler to transform the source to MARCXML. |
Methods inherited from class java.lang.Thread |
---|
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MarcXmlParserThread(RecordStack queue)
RecordQueue
.
queue
- the record queuepublic MarcXmlParserThread(RecordStack queue, InputSource input)
RecordQueue
and
the InputStream
.
queue
- the record queueinput
- the input streamMethod Detail |
---|
public TransformerHandler getTransformerHandler()
public void setTransformerHandler(TransformerHandler th)
th
- -
the transformation content handlerpublic InputSource getInputSource()
public void setInputSource(InputSource input)
input
- the input streampublic void run()
MarcXmlHandler
instance, registers the
RecordQueue
and sends the InputStream
to
the MarcXmlParser
parser.
run
in interface Runnable
run
in class Thread
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |