- java.lang.Object
-
- org.xml.sax.helpers.XMLFilterImpl
-
- org.jorigin.lang.xml.LangResourceXMLFilter
-
- All Implemented Interfaces:
ContentHandler,DTDHandler,EntityResolver,ErrorHandler,XMLFilter,XMLReader
public class LangResourceXMLFilter extends XMLFilterImpl
A simple override of theXMLFilterImpldedicated to the lang XML resource file parsing. Most of the methods simply delegate to super methods.- Since:
- 1.0.0
- Version:
- "1.0.14" - b202111241200L
- Author:
- Julien SEINTURIER - Université de Toulon / CNRS LIS umr 7020 - github.com/jorigin/jcommon (contact@jorigin.org)
-
-
Field Summary
Fields Modifier and Type Field Description protected EventListenerListidListenerListThe attached listeners.
-
Constructor Summary
Constructors Constructor Description LangResourceXMLFilter()Create a new XML resource filter.LangResourceXMLFilter(XMLReader parser)Create a new XML resource filter with an input parser.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidendDocument()voidendElement(String uri, String localName, String qName)voiderror(SAXParseException e)voidfatalError(SAXParseException e)voidparse(String systemId)voidparse(InputSource input)voidstartDocument()voidstartElement(String uri, String localName, String qName, Attributes atts)voidwarning(SAXParseException e)-
Methods inherited from class org.xml.sax.helpers.XMLFilterImpl
characters, endPrefixMapping, getContentHandler, getDTDHandler, getEntityResolver, getErrorHandler, getFeature, getParent, getProperty, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setContentHandler, setDocumentLocator, setDTDHandler, setEntityResolver, setErrorHandler, setFeature, setParent, setProperty, skippedEntity, startPrefixMapping, unparsedEntityDecl
-
-
-
-
Field Detail
-
idListenerList
protected EventListenerList idListenerList
The attached listeners.
-
-
Constructor Detail
-
LangResourceXMLFilter
public LangResourceXMLFilter()
Create a new XML resource filter.
-
LangResourceXMLFilter
public LangResourceXMLFilter(XMLReader parser)
Create a new XML resource filter with an input parser.- Parameters:
parser- the parser to use.
-
-
Method Detail
-
parse
public void parse(InputSource input) throws SAXException, IOException
- Specified by:
parsein interfaceXMLReader- Overrides:
parsein classXMLFilterImpl- Throws:
SAXExceptionIOException
-
parse
public void parse(String systemId) throws SAXException, IOException
- Specified by:
parsein interfaceXMLReader- Overrides:
parsein classXMLFilterImpl- Throws:
SAXExceptionIOException
-
startDocument
public void startDocument() throws SAXException- Specified by:
startDocumentin interfaceContentHandler- Overrides:
startDocumentin classXMLFilterImpl- Throws:
SAXException
-
endDocument
public void endDocument() throws SAXException- Specified by:
endDocumentin interfaceContentHandler- Overrides:
endDocumentin classXMLFilterImpl- Throws:
SAXException
-
startElement
public void startElement(String uri, String localName, String qName, Attributes atts) throws SAXException
- Specified by:
startElementin interfaceContentHandler- Overrides:
startElementin classXMLFilterImpl- Throws:
SAXException
-
endElement
public void endElement(String uri, String localName, String qName) throws SAXException
- Specified by:
endElementin interfaceContentHandler- Overrides:
endElementin classXMLFilterImpl- Throws:
SAXException
-
warning
public void warning(SAXParseException e) throws SAXException
- Specified by:
warningin interfaceErrorHandler- Overrides:
warningin classXMLFilterImpl- Throws:
SAXException
-
error
public void error(SAXParseException e) throws SAXException
- Specified by:
errorin interfaceErrorHandler- Overrides:
errorin classXMLFilterImpl- Throws:
SAXException
-
fatalError
public void fatalError(SAXParseException e) throws SAXException
- Specified by:
fatalErrorin interfaceErrorHandler- Overrides:
fatalErrorin classXMLFilterImpl- Throws:
SAXException
-
-