Package com.saxonica.serialize
Class Base64BinaryEmitter
- java.lang.Object
-
- net.sf.saxon.event.SequenceReceiver
-
- net.sf.saxon.serialize.Emitter
-
- com.saxonica.serialize.BinaryEmitter
-
- com.saxonica.serialize.Base64BinaryEmitter
-
- All Implemented Interfaces:
javax.xml.transform.Result
,Receiver
,ReceiverWithOutputProperties
public class Base64BinaryEmitter extends BinaryEmitter
This emitter implements output method saxon:base64Binary. All nodes in the result tree other than text nodes are ignored. Text nodes are required to be in the lexical space of base64binary, and are serialized by writing the corresponding octets to the output file. All other serialization parameters are ignored
-
-
Field Summary
-
Fields inherited from class com.saxonica.serialize.BinaryEmitter
outputStream
-
Fields inherited from class net.sf.saxon.serialize.Emitter
allCharactersEncodable, characterSet, outputProperties, writer
-
Fields inherited from class net.sf.saxon.event.SequenceReceiver
pipelineConfiguration, previousAtomic, systemId
-
-
Constructor Summary
Constructors Constructor Description Base64BinaryEmitter(javax.xml.transform.stream.StreamResult stream, PipelineConfiguration pipe)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected byte[]
textNodeToBinary(UnicodeString chars)
-
Methods inherited from class com.saxonica.serialize.BinaryEmitter
characters, close, comment, endDocument, endElement, makeOutputStream, open, processingInstruction, startDocument, startElement, usesTypeAnnotations
-
Methods inherited from class net.sf.saxon.serialize.Emitter
append, getOutputProperties, setMustClose, setOutputProperties, setUnicodeWriter, setUnparsedEntity
-
Methods inherited from class net.sf.saxon.event.SequenceReceiver
append, decompose, flatten, getConfiguration, getErrorCodeForDecomposingFunctionItems, getNamePool, getPipelineConfiguration, getSystemId, handlesAppend, setPipelineConfiguration, setSystemId
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.sf.saxon.event.Receiver
append, getPipelineConfiguration, handlesAppend, setPipelineConfiguration
-
-
-
-
Constructor Detail
-
Base64BinaryEmitter
public Base64BinaryEmitter(javax.xml.transform.stream.StreamResult stream, PipelineConfiguration pipe) throws XPathException
- Throws:
XPathException
-
-
Method Detail
-
textNodeToBinary
protected byte[] textNodeToBinary(UnicodeString chars) throws XPathException
- Specified by:
textNodeToBinary
in classBinaryEmitter
- Throws:
XPathException
-
-