|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object gnu.xml.pipeline.EventFilter fi.karppinen.xml.RootLangInjector
public class RootLangInjector
Adds an xml:lang
attribute to the root element.
Field Summary | |
---|---|
private boolean |
injected
|
private Locale |
lang
|
Fields inherited from class gnu.xml.pipeline.EventFilter |
---|
DECL_HANDLER, FEATURE_URI, LEXICAL_HANDLER, PROPERTY_URI |
Constructor Summary | |
---|---|
RootLangInjector(Locale lang)
|
|
RootLangInjector(Locale lang,
gnu.xml.pipeline.EventConsumer consumer)
|
Method Summary | |
---|---|
void |
startElement(String uri,
String localName,
String qName,
Attributes atts)
|
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, processingInstruction, setContentHandler, setDocumentLocator, setDTDHandler, setErrorHandler, setProperty, skippedEntity, startCDATA, startDocument, startDTD, startEntity, startPrefixMapping, unparsedEntityDecl |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private Locale lang
private boolean injected
Constructor Detail |
---|
public RootLangInjector(Locale lang)
public RootLangInjector(Locale lang, gnu.xml.pipeline.EventConsumer consumer)
consumer
- Method Detail |
---|
public void startElement(String uri, String localName, String qName, Attributes atts) throws SAXException
startElement
in interface ContentHandler
startElement
in class gnu.xml.pipeline.EventFilter
SAXException
ContentHandler.startElement(java.lang.String, java.lang.String, java.lang.String, org.xml.sax.Attributes)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |