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 TypeMethodDescriptionbooleangetFeature(String name) getProperty(String name) voidvoidparse(InputSource input) voidsetContentHandler(ContentHandler handler) voidsetDTDHandler(DTDHandler handler) voidsetEntityResolver(EntityResolver resolver) voidsetErrorHandler(ErrorHandler handler) voidsetFeature(String name, boolean value) voidsetProperty(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. ifnullwill use the EncodingDetectorSingleton.getInstance().authorUtilAccess- Access to util methods.
-
-
Method Details
-
getContentHandler
- Specified by:
getContentHandlerin interfaceXMLReader- See Also:
-
getDTDHandler
- Specified by:
getDTDHandlerin interfaceXMLReader- See Also:
-
getEntityResolver
- Specified by:
getEntityResolverin interfaceXMLReader- See Also:
-
getErrorHandler
- Specified by:
getErrorHandlerin interfaceXMLReader- See Also:
-
getFeature
- Specified by:
getFeaturein interfaceXMLReader- Throws:
SAXNotRecognizedExceptionSAXNotSupportedException- See Also:
-
getProperty
- Specified by:
getPropertyin interfaceXMLReader- Throws:
SAXNotRecognizedExceptionSAXNotSupportedException- See Also:
-
parse
- Specified by:
parsein interfaceXMLReader- Throws:
IOExceptionSAXException- See Also:
-
parse
- Specified by:
parsein interfaceXMLReader- Throws:
IOExceptionSAXException- See Also:
-
setContentHandler
- Specified by:
setContentHandlerin interfaceXMLReader- See Also:
-
setDTDHandler
- Specified by:
setDTDHandlerin interfaceXMLReader- See Also:
-
setEntityResolver
- Specified by:
setEntityResolverin interfaceXMLReader- See Also:
-
setErrorHandler
- Specified by:
setErrorHandlerin interfaceXMLReader- See Also:
-
setFeature
public void setFeature(String name, boolean value) throws SAXNotRecognizedException, SAXNotSupportedException - Specified by:
setFeaturein interfaceXMLReader- Throws:
SAXNotRecognizedExceptionSAXNotSupportedException- See Also:
-
setProperty
public void setProperty(String name, Object value) throws SAXNotRecognizedException, SAXNotSupportedException - Specified by:
setPropertyin interfaceXMLReader- Throws:
SAXNotRecognizedExceptionSAXNotSupportedException- See Also:
-