Class DITAXMLReaderWrapper
- java.lang.Object
-
- ro.sync.ecss.extensions.dita.conref.DITAXMLReaderWrapper
-
- All Implemented Interfaces:
org.xml.sax.XMLReader
@API(type=INTERNAL, src=PUBLIC) public class DITAXMLReaderWrapper extends java.lang.Object implements org.xml.sax.XMLReader
Delegating XML Reader used to parse DITA 'conref' references.
-
-
Constructor Summary
Constructors Constructor Description DITAXMLReaderWrapper(org.xml.sax.XMLReader xmlReader, java.lang.String[] topicPath, java.lang.String[] endTopicPath, java.lang.String sourceClass, boolean isKeyReference)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.xml.sax.ContentHandler
getContentHandler()
org.xml.sax.DTDHandler
getDTDHandler()
org.xml.sax.EntityResolver
getEntityResolver()
org.xml.sax.ErrorHandler
getErrorHandler()
boolean
getFeature(java.lang.String name)
java.lang.Object
getProperty(java.lang.String name)
void
parse(java.lang.String systemId)
void
parse(org.xml.sax.InputSource input)
void
setContentHandler(org.xml.sax.ContentHandler handler)
void
setDTDHandler(org.xml.sax.DTDHandler handler)
void
setEntityResolver(org.xml.sax.EntityResolver resolver)
void
setErrorHandler(org.xml.sax.ErrorHandler handler)
void
setFeature(java.lang.String name, boolean value)
void
setProperty(java.lang.String name, java.lang.Object value)
-
-
-
Constructor Detail
-
DITAXMLReaderWrapper
public DITAXMLReaderWrapper(org.xml.sax.XMLReader xmlReader, java.lang.String[] topicPath, java.lang.String[] endTopicPath, java.lang.String sourceClass, boolean isKeyReference) throws org.xml.sax.SAXNotRecognizedException, org.xml.sax.SAXNotSupportedException
Constructor.- Parameters:
xmlReader
- The wrapped XML Reader.topicPath
- The topic IDs path. If null, the first encountered topic will be used.endTopicPath
- If a "conrefend" is specified, this is the end range pathsourceClass
- The class attribute value of the element which makes the conref...isKeyReference
-true
if the reference is a key reference.- Throws:
org.xml.sax.SAXNotSupportedException
org.xml.sax.SAXNotRecognizedException
-
-
Method Detail
-
getContentHandler
public org.xml.sax.ContentHandler getContentHandler()
- Specified by:
getContentHandler
in interfaceorg.xml.sax.XMLReader
- See Also:
XMLReader.getContentHandler()
-
getDTDHandler
public org.xml.sax.DTDHandler getDTDHandler()
- Specified by:
getDTDHandler
in interfaceorg.xml.sax.XMLReader
- See Also:
XMLReader.getDTDHandler()
-
getEntityResolver
public org.xml.sax.EntityResolver getEntityResolver()
- Specified by:
getEntityResolver
in interfaceorg.xml.sax.XMLReader
- See Also:
XMLReader.getEntityResolver()
-
getErrorHandler
public org.xml.sax.ErrorHandler getErrorHandler()
- Specified by:
getErrorHandler
in interfaceorg.xml.sax.XMLReader
- See Also:
XMLReader.getErrorHandler()
-
getFeature
public boolean getFeature(java.lang.String name) throws org.xml.sax.SAXNotRecognizedException, org.xml.sax.SAXNotSupportedException
- Specified by:
getFeature
in interfaceorg.xml.sax.XMLReader
- Throws:
org.xml.sax.SAXNotRecognizedException
org.xml.sax.SAXNotSupportedException
- See Also:
XMLReader.getFeature(java.lang.String)
-
getProperty
public java.lang.Object getProperty(java.lang.String name) throws org.xml.sax.SAXNotRecognizedException, org.xml.sax.SAXNotSupportedException
- Specified by:
getProperty
in interfaceorg.xml.sax.XMLReader
- Throws:
org.xml.sax.SAXNotRecognizedException
org.xml.sax.SAXNotSupportedException
- See Also:
XMLReader.getProperty(java.lang.String)
-
parse
public void parse(org.xml.sax.InputSource input) throws java.io.IOException, org.xml.sax.SAXException
- Specified by:
parse
in interfaceorg.xml.sax.XMLReader
- Throws:
java.io.IOException
org.xml.sax.SAXException
- See Also:
XMLReader.parse(org.xml.sax.InputSource)
-
parse
public void parse(java.lang.String systemId) throws java.io.IOException, org.xml.sax.SAXException
- Specified by:
parse
in interfaceorg.xml.sax.XMLReader
- Throws:
java.io.IOException
org.xml.sax.SAXException
- See Also:
XMLReader.parse(java.lang.String)
-
setContentHandler
public void setContentHandler(org.xml.sax.ContentHandler handler)
- Specified by:
setContentHandler
in interfaceorg.xml.sax.XMLReader
- See Also:
XMLReader.setContentHandler(org.xml.sax.ContentHandler)
-
setDTDHandler
public void setDTDHandler(org.xml.sax.DTDHandler handler)
- Specified by:
setDTDHandler
in interfaceorg.xml.sax.XMLReader
- See Also:
XMLReader.setDTDHandler(org.xml.sax.DTDHandler)
-
setEntityResolver
public void setEntityResolver(org.xml.sax.EntityResolver resolver)
- Specified by:
setEntityResolver
in interfaceorg.xml.sax.XMLReader
- See Also:
XMLReader.setEntityResolver(org.xml.sax.EntityResolver)
-
setErrorHandler
public void setErrorHandler(org.xml.sax.ErrorHandler handler)
- Specified by:
setErrorHandler
in interfaceorg.xml.sax.XMLReader
- See Also:
XMLReader.setErrorHandler(org.xml.sax.ErrorHandler)
-
setFeature
public void setFeature(java.lang.String name, boolean value) throws org.xml.sax.SAXNotRecognizedException, org.xml.sax.SAXNotSupportedException
- Specified by:
setFeature
in interfaceorg.xml.sax.XMLReader
- Throws:
org.xml.sax.SAXNotRecognizedException
org.xml.sax.SAXNotSupportedException
- See Also:
XMLReader.setFeature(java.lang.String, boolean)
-
setProperty
public void setProperty(java.lang.String name, java.lang.Object value) throws org.xml.sax.SAXNotRecognizedException, org.xml.sax.SAXNotSupportedException
- Specified by:
setProperty
in interfaceorg.xml.sax.XMLReader
- Throws:
org.xml.sax.SAXNotRecognizedException
org.xml.sax.SAXNotSupportedException
- See Also:
XMLReader.setProperty(java.lang.String, java.lang.Object)
-
-