ca.cbc.sportwire.dochandler
Interface DocHandler

All Known Implementing Classes:
XMLDBMSDocHandler, JDOMToFile, ToNewsMLFilter, JDOMToXMLDBMS

public interface DocHandler

DocHandler is the generic interface for objects that can accept blocks of whatever objects from the DocQueue; this interface allows the DocQueue to have no knowledge of how the documents are actually processed.

Created: Wed Nov 14 15:01:27 2001

Version:
$Id: DocHandler.java,v 1.5 2002/04/04 01:46:08 garym Exp $
Author:
Gary Lawrence Murphy

Method Summary
 java.lang.Object processDocument(java.lang.Object doc)
          processDocument: called by the DocQueue on each object in the queue; this must be a thread-safe process that will already know what type to expect from the doc parameter.
 

Method Detail

processDocument

public java.lang.Object processDocument(java.lang.Object doc)
processDocument: called by the DocQueue on each object in the queue; this must be a thread-safe process that will already know what type to expect from the doc parameter. It's fair to say that doc.toString() will be the XML
Parameters:
doc - an Object value read by the WireFeeder.