Class BinaryTextDecoder

  • All Implemented Interfaces:
    javax.xml.transform.Result, Receiver

    public class BinaryTextDecoder
    extends ProxyReceiver
    This class generates decodes processing instructions in text output that represent text encoded in base64 binary or hexBinary
    • Method Detail

      • setOutputProperties

        public void setOutputProperties​(java.util.Properties details)
                                 throws XPathException
        Set output properties
        Parameters:
        details - the output serialization properties
        Throws:
        XPathException
      • processingInstruction

        public void processingInstruction​(java.lang.String name,
                                          java.lang.CharSequence value,
                                          Location locationId,
                                          int properties)
                                   throws XPathException
        Output a processing instruction.
        Does nothing with this output method, unless the saxon:recognize-binary option is set, and this is the processing instructions hex or b64. The name of the processing instruction may be followed by an encoding name, for example b64.ascii indicates base64-encoded ASCII strings; if no encoding is present, the encoding of the output method is assumed.
        Specified by:
        processingInstruction in interface Receiver
        Overrides:
        processingInstruction in class ProxyReceiver
        Parameters:
        name - The PI name. This must be a legal name (it will not be checked).
        value - The data portion of the processing instruction
        locationId - provides information such as line number and system ID.
        properties - Additional information about the PI.
        Throws:
        XPathException - if an error occurs