fi.karppinen.xml
Class StringInjector

java.lang.Object
  extended by gnu.xml.pipeline.EventFilter
      extended by fi.karppinen.xml.StringInjector
All Implemented Interfaces:
gnu.xml.pipeline.EventConsumer, ContentHandler, DTDHandler, DeclHandler, LexicalHandler

public class StringInjector
extends gnu.xml.pipeline.EventFilter

Replaces PIs of the form <?string key?> with the toString() of the corresponding value in the Map given to the constructor.

Version:
$Id: StringInjector.java,v 1.1 2006/10/30 19:57:09 hsivonen Exp $
Author:
hsivonen

Field Summary
private  Map map
           
 
Fields inherited from class gnu.xml.pipeline.EventFilter
DECL_HANDLER, FEATURE_URI, LEXICAL_HANDLER, PROPERTY_URI
 
Constructor Summary
StringInjector(Map map)
           
StringInjector(Map map, gnu.xml.pipeline.EventConsumer ec)
           
 
Method Summary
 void processingInstruction(String target, String data)
           
 
Methods inherited from class gnu.xml.pipeline.EventFilter
attributeDecl, bind, chainTo, characters, comment, elementDecl, endCDATA, endDocument, endDTD, endElement, endEntity, endPrefixMapping, externalEntityDecl, getContentHandler, getDocumentLocator, getDTDHandler, getErrorHandler, getNext, getProperty, ignorableWhitespace, internalEntityDecl, notationDecl, setContentHandler, setDocumentLocator, setDTDHandler, setErrorHandler, setProperty, skippedEntity, startCDATA, startDocument, startDTD, startElement, startEntity, startPrefixMapping, unparsedEntityDecl
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

map

private Map map
Constructor Detail

StringInjector

public StringInjector(Map map)

StringInjector

public StringInjector(Map map,
                      gnu.xml.pipeline.EventConsumer ec)
Parameters:
ec -
Method Detail

processingInstruction

public void processingInstruction(String target,
                                  String data)
                           throws SAXException
Specified by:
processingInstruction in interface ContentHandler
Overrides:
processingInstruction in class gnu.xml.pipeline.EventFilter
Throws:
SAXException
See Also:
ContentHandler.processingInstruction(java.lang.String, java.lang.String)