Class PassThroughXMLWriter

  • All Implemented Interfaces:
    XMLWriter, org.xml.sax.ContentHandler

    public class PassThroughXMLWriter
    extends XMLWriterImpl
    A subclass of XMLWriterImpl, which is escaping nothing.
    • Constructor Detail

      • PassThroughXMLWriter

        public PassThroughXMLWriter()
    • Method Detail

      • canEncode

        public boolean canEncode​(char c)
        Description copied from interface: XMLWriter

        Returns whether the XMLWriter can encode the character c without an escape sequence like &#ddd;.

        Specified by:
        canEncode in interface XMLWriter
        Overrides:
        canEncode in class XMLWriterImpl
        Parameters:
        c - The character being checked for escaping.
        Returns:
        Whether to encode the character.