Package org.ametys.core.util
Class IgnoreRootHandler
- java.lang.Object
-
- org.apache.excalibur.xml.sax.ContentHandlerProxy
-
- org.ametys.core.util.IgnoreRootHandler
-
- All Implemented Interfaces:
ContentHandler,LexicalHandler
- Direct Known Subclasses:
DispatchGenerator.ResponseHandler,DynamicInformationHandler,PluginDocGenerator.SpecialHandler
public class IgnoreRootHandler extends ContentHandlerProxy implements LexicalHandler
"Proxy" handler ignoring startDocument() and endDocument() calls
-
-
Constructor Summary
Constructors Constructor Description IgnoreRootHandler(ContentHandler contentHandler)ConstructorIgnoreRootHandler(ContentHandler contentHandler, LexicalHandler lexicalHandler)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcomment(char[] ch, int start, int length)voidendCDATA()voidendDocument()voidendDTD()voidendEntity(String name)voidstartCDATA()voidstartDocument()voidstartDTD(String name, String publicId, String systemId)voidstartEntity(String name)-
Methods inherited from class org.apache.excalibur.xml.sax.ContentHandlerProxy
characters, endElement, endPrefixMapping, ignorableWhitespace, processingInstruction, setContentHandler, setDocumentLocator, skippedEntity, startElement, startPrefixMapping
-
-
-
-
Constructor Detail
-
IgnoreRootHandler
public IgnoreRootHandler(ContentHandler contentHandler)
Constructor- Parameters:
contentHandler- the contentHandler to pass SAX events to. In case theContentHandleralso implements theLexicalHandlerinterface, it will be honoured.
-
IgnoreRootHandler
public IgnoreRootHandler(ContentHandler contentHandler, LexicalHandler lexicalHandler)
Constructor- Parameters:
contentHandler- the contentHandler to pass SAX events tolexicalHandler- the lexicalHandler to pass lexical events to. May be null.
-
-
Method Detail
-
startDocument
public void startDocument() throws SAXException
- Specified by:
startDocumentin interfaceContentHandler- Overrides:
startDocumentin classContentHandlerProxy- Throws:
SAXException
-
endDocument
public void endDocument() throws SAXException
- Specified by:
endDocumentin interfaceContentHandler- Overrides:
endDocumentin classContentHandlerProxy- Throws:
SAXException
-
comment
public void comment(char[] ch, int start, int length) throws SAXException
- Specified by:
commentin interfaceLexicalHandler- Throws:
SAXException
-
startCDATA
public void startCDATA() throws SAXException
- Specified by:
startCDATAin interfaceLexicalHandler- Throws:
SAXException
-
endCDATA
public void endCDATA() throws SAXException
- Specified by:
endCDATAin interfaceLexicalHandler- Throws:
SAXException
-
startDTD
public void startDTD(String name, String publicId, String systemId) throws SAXException
- Specified by:
startDTDin interfaceLexicalHandler- Throws:
SAXException
-
endDTD
public void endDTD() throws SAXException
- Specified by:
endDTDin interfaceLexicalHandler- Throws:
SAXException
-
startEntity
public void startEntity(String name) throws SAXException
- Specified by:
startEntityin interfaceLexicalHandler- Throws:
SAXException
-
endEntity
public void endEntity(String name) throws SAXException
- Specified by:
endEntityin interfaceLexicalHandler- Throws:
SAXException
-
-