com.aliasi.xml
Class CompositeFilter

java.lang.Object
  extended by org.xml.sax.helpers.DefaultHandler
      extended by com.aliasi.xml.SimpleElementHandler
          extended by com.aliasi.xml.SAXFilterHandler
              extended by com.aliasi.xml.CompositeFilter
All Implemented Interfaces:
ContentHandler, DTDHandler, EntityResolver, ErrorHandler

Deprecated. Plug filters together directly.

@Deprecated
public class CompositeFilter
extends SAXFilterHandler

A CompositeFilter is a SAX filter that is composed of several filters through which events are passed. A composite filter is constructed from an array of filters, and when used as a handler, delegates the events to the first filter in the sequence, which in turn delegates them to the next filter down the line, all the way down to the default handler set with setHandler(DefaultHandler).

Since:
LingPipe1.0
Version:
3.9.1
Author:
Bob Carpenter

Field Summary
 
Fields inherited from class com.aliasi.xml.SAXFilterHandler
mHandler
 
Fields inherited from class com.aliasi.xml.SimpleElementHandler
CDATA_ATTS_TYPE, EMPTY_ATTS, NO_OP_DEFAULT_HANDLER
 
Constructor Summary
CompositeFilter(SAXFilterHandler[] filters)
          Deprecated. Construct a composite filter from the specified array of filters.
 
Method Summary
 void setHandler(DefaultHandler handler)
          Deprecated. Sets the handler for the composite filter.
 
Methods inherited from class com.aliasi.xml.SAXFilterHandler
characters, endDocument, endElement, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping, unparsedEntityDecl, warning
 
Methods inherited from class com.aliasi.xml.SimpleElementHandler
addSimpleAttribute, characters, characters, characters, characters, createAttributes, createAttributes, createAttributes, createAttributes, createAttributes, createAttributes, endSimpleElement, endSimpleElement, startEndSimpleElement, startEndSimpleElement, startSimpleElement, startSimpleElement, startSimpleElement, startSimpleElement, startSimpleElement, startSimpleElement, startSimpleElement
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompositeFilter

public CompositeFilter(SAXFilterHandler[] filters)
Deprecated. 
Construct a composite filter from the specified array of filters. Events passed to the first filter in the list will be handled by that filter, and then passed to the next filter in the list, and so on, until the contained handler for the constructed composite handler is reached. The supplied array should contain at least one element, but should contain at least two filters to be useful.

Parameters:
filters - Chain of SAX filters making up the constructed composite filter.
Throws:
NoSuchElementException - If the supplied array of filters does not have at least one element.
Method Detail

setHandler

public void setHandler(DefaultHandler handler)
Deprecated. 
Sets the handler for the composite filter. This will in turn set the specified handler for the last filter in this composite filter's chain of filters.

Overrides:
setHandler in class SAXFilterHandler