Class PicaXmlParserThread

  • All Implemented Interfaces:
    Runnable

    public class PicaXmlParserThread
    extends Thread
    This class is a variation of MarcXmlParserThread
    • Constructor Detail

      • PicaXmlParserThread

        public PicaXmlParserThread​(org.marc4j.RecordStack queue)
        Creates a new instance and registers the RecordQueue.
        Parameters:
        queue - the record queue
      • PicaXmlParserThread

        public PicaXmlParserThread​(org.marc4j.RecordStack queue,
                                   InputSource input,
                                   String idField,
                                   char idCode)
        Creates a new instance and registers the RecordQueue and the InputStream.
        Parameters:
        queue - the record queue
        input - 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
      • run

        public void run()
        Creates a new MarcXmlHandler instance, registers the RecordQueue and sends the InputStream to the MarcXmlParser parser.
        Specified by:
        run in interface Runnable
        Overrides:
        run in class Thread