Class DITAXMLReaderWrapper
java.lang.Object
ro.sync.ecss.extensions.dita.conref.DITAXMLReaderWrapper
- All Implemented Interfaces:
XMLReader
@API(type=INTERNAL,
src=PUBLIC)
public class DITAXMLReaderWrapper
extends Object
implements XMLReader
Delegating XML Reader used to parse DITA 'conref' references.
-
Constructor Summary
ConstructorsConstructorDescriptionDITAXMLReaderWrapper
(XMLReader xmlReader, String[] topicPath, String[] endTopicPath, String sourceClass, boolean isKeyReference) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionboolean
getFeature
(String name) getProperty
(String name) void
void
parse
(InputSource input) void
setContentHandler
(ContentHandler handler) void
setDTDHandler
(DTDHandler handler) void
setEntityResolver
(EntityResolver resolver) void
setErrorHandler
(ErrorHandler handler) void
setFeature
(String name, boolean value) void
setProperty
(String name, Object value)
-
Constructor Details
-
DITAXMLReaderWrapper
public DITAXMLReaderWrapper(XMLReader xmlReader, String[] topicPath, String[] endTopicPath, String sourceClass, boolean isKeyReference) throws SAXNotRecognizedException, 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:
SAXNotSupportedException
SAXNotRecognizedException
-
-
Method Details
-
getContentHandler
- Specified by:
getContentHandler
in interfaceXMLReader
- See Also:
-
getDTDHandler
- Specified by:
getDTDHandler
in interfaceXMLReader
- See Also:
-
getEntityResolver
- Specified by:
getEntityResolver
in interfaceXMLReader
- See Also:
-
getErrorHandler
- Specified by:
getErrorHandler
in interfaceXMLReader
- See Also:
-
getFeature
- Specified by:
getFeature
in interfaceXMLReader
- Throws:
SAXNotRecognizedException
SAXNotSupportedException
- See Also:
-
getProperty
- Specified by:
getProperty
in interfaceXMLReader
- Throws:
SAXNotRecognizedException
SAXNotSupportedException
- See Also:
-
parse
- Specified by:
parse
in interfaceXMLReader
- Throws:
IOException
SAXException
- See Also:
-
parse
- Specified by:
parse
in interfaceXMLReader
- Throws:
IOException
SAXException
- See Also:
-
setContentHandler
- Specified by:
setContentHandler
in interfaceXMLReader
- See Also:
-
setDTDHandler
- Specified by:
setDTDHandler
in interfaceXMLReader
- See Also:
-
setEntityResolver
- Specified by:
setEntityResolver
in interfaceXMLReader
- See Also:
-
setErrorHandler
- Specified by:
setErrorHandler
in interfaceXMLReader
- See Also:
-
setFeature
public void setFeature(String name, boolean value) throws SAXNotRecognizedException, SAXNotSupportedException - Specified by:
setFeature
in interfaceXMLReader
- Throws:
SAXNotRecognizedException
SAXNotSupportedException
- See Also:
-
setProperty
public void setProperty(String name, Object value) throws SAXNotRecognizedException, SAXNotSupportedException - Specified by:
setProperty
in interfaceXMLReader
- Throws:
SAXNotRecognizedException
SAXNotSupportedException
- See Also:
-