Package net.sf.saxon.serialize
Class BinaryTextDecoder
- java.lang.Object
-
- net.sf.saxon.event.SequenceReceiver
-
- net.sf.saxon.event.ProxyReceiver
-
- net.sf.saxon.serialize.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
-
-
Field Summary
-
Fields inherited from class net.sf.saxon.event.ProxyReceiver
nextReceiver
-
Fields inherited from class net.sf.saxon.event.SequenceReceiver
pipelineConfiguration, previousAtomic, systemId
-
-
Constructor Summary
Constructors Constructor Description BinaryTextDecoder(Receiver next, java.util.Properties details)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
processingInstruction(java.lang.String name, UnicodeString value, Location locationId, int properties)
Output a processing instruction.void
setOutputProperties(java.util.Properties details)
Set output properties-
Methods inherited from class net.sf.saxon.event.ProxyReceiver
append, characters, close, comment, endDocument, endElement, getNamePool, getNextReceiver, open, setPipelineConfiguration, setSystemId, setUnderlyingReceiver, setUnparsedEntity, startDocument, startElement, usesTypeAnnotations
-
Methods inherited from class net.sf.saxon.event.SequenceReceiver
append, decompose, flatten, getConfiguration, getErrorCodeForDecomposingFunctionItems, getPipelineConfiguration, getSystemId, handlesAppend
-
-
-
-
Constructor Detail
-
BinaryTextDecoder
public BinaryTextDecoder(Receiver next, java.util.Properties details) throws XPathException
- Throws:
XPathException
-
-
Method Detail
-
setOutputProperties
public void setOutputProperties(java.util.Properties details) throws XPathException
Set output properties- Parameters:
details
- the output serialization properties- Throws:
XPathException
- if any error occurs
-
processingInstruction
public void processingInstruction(java.lang.String name, UnicodeString 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 interfaceReceiver
- Overrides:
processingInstruction
in classProxyReceiver
- Parameters:
name
- The PI name. This must be a legal name (it will not be checked).value
- The data portion of the processing instructionlocationId
- provides information such as line number and system ID.properties
- Additional information about the PI.- Throws:
XPathException
- if an error occurs
-
-