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
-
-
Field Summary
Fields Modifier and Type Field Description private LexicalHandler
_lexicalHandler
-
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 void
comment(char[] ch, int start, int length)
void
endCDATA()
void
endDocument()
void
endDTD()
void
endEntity(String name)
void
startCDATA()
void
startDocument()
void
startDTD(String name, String publicId, String systemId)
void
startEntity(String name)
-
Methods inherited from class org.apache.excalibur.xml.sax.ContentHandlerProxy
characters, endElement, endPrefixMapping, ignorableWhitespace, processingInstruction, setContentHandler, setDocumentLocator, skippedEntity, startElement, startPrefixMapping
-
-
-
-
Field Detail
-
_lexicalHandler
private LexicalHandler _lexicalHandler
-
-
Constructor Detail
-
IgnoreRootHandler
public IgnoreRootHandler(ContentHandler contentHandler)
Constructor- Parameters:
contentHandler
- the contentHandler to pass SAX events to. In case theContentHandler
also implements theLexicalHandler
interface, 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:
startDocument
in interfaceContentHandler
- Overrides:
startDocument
in classContentHandlerProxy
- Throws:
SAXException
-
endDocument
public void endDocument() throws SAXException
- Specified by:
endDocument
in interfaceContentHandler
- Overrides:
endDocument
in classContentHandlerProxy
- Throws:
SAXException
-
comment
public void comment(char[] ch, int start, int length) throws SAXException
- Specified by:
comment
in interfaceLexicalHandler
- Throws:
SAXException
-
startCDATA
public void startCDATA() throws SAXException
- Specified by:
startCDATA
in interfaceLexicalHandler
- Throws:
SAXException
-
endCDATA
public void endCDATA() throws SAXException
- Specified by:
endCDATA
in interfaceLexicalHandler
- Throws:
SAXException
-
startDTD
public void startDTD(String name, String publicId, String systemId) throws SAXException
- Specified by:
startDTD
in interfaceLexicalHandler
- Throws:
SAXException
-
endDTD
public void endDTD() throws SAXException
- Specified by:
endDTD
in interfaceLexicalHandler
- Throws:
SAXException
-
startEntity
public void startEntity(String name) throws SAXException
- Specified by:
startEntity
in interfaceLexicalHandler
- Throws:
SAXException
-
endEntity
public void endEntity(String name) throws SAXException
- Specified by:
endEntity
in interfaceLexicalHandler
- Throws:
SAXException
-
-