com.sun.xml.fastinfoset.dom
Class DOMDocumentSerializer
java.lang.Object
org.xml.sax.helpers.DefaultHandler
com.sun.xml.fastinfoset.Encoder
com.sun.xml.fastinfoset.dom.DOMDocumentSerializer
- All Implemented Interfaces:
- FastInfosetSerializer, org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler
public class DOMDocumentSerializer
- extends Encoder
The Fast Infoset DOM serializer.
Instantiate this serializer to serialize a fast infoset document in accordance
with the DOM API.
Fields inherited from class com.sun.xml.fastinfoset.Encoder |
_b, _characterEncodingSchemeSystemDefault, _charBuffer, _markIndex, _octetBuffer, _octetBufferIndex, _s, _terminate, _v, _vData, attributeValueMapTotalCharactersConstraint, attributeValueSizeConstraint, CHARACTER_ENCODING_SCHEME_SYSTEM_PROPERTY, characterContentChunkMapTotalCharactersConstraint, characterContentChunkSizeContraint, DATE_TIME_CHARACTERS_TABLE, NUMERIC_CHARACTERS_TABLE |
Fields inherited from interface org.jvnet.fastinfoset.FastInfosetSerializer |
ATTRIBUTE_VALUE_MAP_MEMORY_CONSTRAINT, ATTRIBUTE_VALUE_SIZE_CONSTRAINT, BUFFER_SIZE_PROPERTY, CHARACTER_CONTENT_CHUNK_MAP_MEMORY_CONSTRAINT, CHARACTER_CONTENT_CHUNK_SIZE_CONSTRAINT, EXTERNAL_VOCABULARIES_PROPERTY, IGNORE_COMMENTS_FEATURE, IGNORE_DTD_FEATURE, IGNORE_PROCESSING_INSTRUCTIONS_FEATURE, IGNORE_WHITE_SPACE_TEXT_CONTENT_FEATURE, REGISTERED_ENCODING_ALGORITHMS_PROPERTY, UTF_16BE, UTF_8 |
Methods inherited from class com.sun.xml.fastinfoset.Encoder |
encodeAIIBuiltInAlgorithmData, encodeAIIObjectAlgorithmData, encodeAIIOctetAlgorithmData, encodeAlphabetCharacters, encodeAttributeQualifiedNameOnSecondBit, encodeCharacters, encodeCharactersNoClone, encodeCIIBuiltInAlgorithmData, encodeCIIBuiltInAlgorithmDataAsCDATA, encodeCIIObjectAlgorithmData, encodeCIIOctetAlgorithmData, encodeComment, encodeCommentNoClone, encodeDocumentTermination, encodeDocumentTypeDeclaration, encodeElementQualifiedNameOnThirdBit, encodeElementTermination, encodeFourBitCharacters, encodeHeader, encodeIdentifyingNonEmptyStringOnFirstBit, encodeInitialVocabulary, encodeLiteralAttributeQualifiedNameOnSecondBit, encodeLiteralElementQualifiedNameOnThirdBit, encodeNamespaceAttribute, encodeNonEmptyCharacterStringOnFifthBit, encodeNonEmptyCharacterStringOnFifthBit, encodeNonEmptyCharacterStringOnSeventhBit, encodeNonEmptyFourBitCharacterString, encodeNonEmptyFourBitCharacterStringOnSeventhBit, encodeNonEmptyNBitCharacterStringOnSeventhBit, encodeNonEmptyOctetStringOnSecondBit, encodeNonEmptyUTF8StringAsOctetString, encodeNonEmptyUTF8StringAsOctetString, encodeNonIdentifyingStringOnFirstBit, encodeNonIdentifyingStringOnFirstBit, encodeNonIdentifyingStringOnFirstBit, encodeNonIdentifyingStringOnFirstBit, encodeNonIdentifyingStringOnFirstBit, encodeNonIdentifyingStringOnThirdBit, encodeNonIdentifyingStringOnThirdBit, encodeNonIdentifyingStringOnThirdBit, encodeNonZeroInteger, encodeNonZeroIntegerOnFourthBit, encodeNonZeroIntegerOnSecondBitFirstBitOne, encodeNonZeroIntegerOnSecondBitFirstBitZero, encodeNonZeroIntegerOnThirdBit, encodeNonZeroOctetStringLength, encodeNonZeroOctetStringLengthOnFifthBit, encodeNonZeroOctetStringLengthOnSecondBit, encodeNonZeroOctetStringLengthOnSenventhBit, encodeProcessingInstruction, encodeTermination, encodeUtf16String, encodeUtf16String, encodeUTF8String, encodeUTF8String, getAttributeValueMapMemoryLimit, getAttributeValueSizeLimit, getCharacterContentChunkMapMemoryLimit, getCharacterContentChunkSizeLimit, getCharacterEncodingScheme, getIgnoreComments, getIgnoreDTD, getIgnoreProcesingInstructions, getIgnoreWhiteSpaceTextContent, getPrefixFromQualifiedName, getRegisteredEncodingAlgorithms, getVocabularyApplicationData, hasMark, isAttributeValueLengthMatchesLimit, isCharacterContentChunkLengthMatchesLimit, isWhiteSpace, isWhiteSpace, mark, reset, resetMark, setAttributeValueMapMemoryLimit, setAttributeValueSizeLimit, setCharacterContentChunkMapMemoryLimit, setCharacterContentChunkSizeLimit, setCharacterEncodingScheme, setExternalVocabulary, setIgnoreComments, setIgnoreDTD, setIgnoreProcesingInstructions, setIgnoreWhiteSpaceTextContent, setOutputStream, setRegisteredEncodingAlgorithms, setVocabulary, setVocabularyApplicationData, write, write, write |
Methods inherited from class org.xml.sax.helpers.DefaultHandler |
characters, endDocument, endElement, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping, unparsedEntityDecl, warning |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_namespaceScopeContext
protected NamespaceContextImplementation _namespaceScopeContext
_attributes
protected org.w3c.dom.Node[] _attributes
DOMDocumentSerializer
public DOMDocumentSerializer()
serialize
public final void serialize(org.w3c.dom.Node n)
throws java.io.IOException
- Serialize a
Node
.
- Parameters:
n
- the node to serialize.
- Throws:
java.io.IOException
serialize
public final void serialize(org.w3c.dom.Document d)
throws java.io.IOException
- Serialize a
Document
.
- Parameters:
d
- the document to serialize.
- Throws:
java.io.IOException
serializeElementAsDocument
protected final void serializeElementAsDocument(org.w3c.dom.Node e)
throws java.io.IOException
- Throws:
java.io.IOException
serializeElement
protected final void serializeElement(org.w3c.dom.Node e)
throws java.io.IOException
- Throws:
java.io.IOException
serializeText
protected final void serializeText(org.w3c.dom.Node t)
throws java.io.IOException
- Throws:
java.io.IOException
serializeCDATA
protected final void serializeCDATA(org.w3c.dom.Node t)
throws java.io.IOException
- Throws:
java.io.IOException
serializeComment
protected final void serializeComment(org.w3c.dom.Node c)
throws java.io.IOException
- Throws:
java.io.IOException
serializeProcessingInstruction
protected final void serializeProcessingInstruction(org.w3c.dom.Node pi)
throws java.io.IOException
- Throws:
java.io.IOException
encodeElement
protected final void encodeElement(java.lang.String namespaceURI,
java.lang.String qName,
java.lang.String localName)
throws java.io.IOException
- Throws:
java.io.IOException
encodeAttribute
protected final void encodeAttribute(java.lang.String namespaceURI,
java.lang.String qName,
java.lang.String localName)
throws java.io.IOException
- Throws:
java.io.IOException