Class TextReferenceReader
java.lang.Object
ro.sync.ecss.extensions.dita.conref.TextReferenceReader
- All Implemented Interfaces:
XMLReader
@API(type=INTERNAL,
src=PUBLIC)
public class TextReferenceReader
extends Object
implements XMLReader
A XMLReader implementation used to provide the content of a DITA reference
as text. It also extracts the text inside a given line interval.
-
Constructor Summary
ConstructorsConstructorDescriptionTextReferenceReader
(String referenceSystemId, String encoding, AuthorUtilAccess authorUtilAccess) 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
-
TextReferenceReader
public TextReferenceReader(String referenceSystemId, String encoding, AuthorUtilAccess authorUtilAccess) Constructor.- Parameters:
referenceSystemId
- The referred file system ID.encoding
- The encoding of the referred file. ifnull
will use the EncodingDetectorSingleton.getInstance().authorUtilAccess
- Access to util methods.
-
-
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:
-