public class DOMDocumentSerializer extends Encoder
Instantiate this serializer to serialize a fast infoset document in accordance with the DOM API.
| Modifier and Type | Field and Description |
|---|---|
protected org.w3c.dom.Node[] |
_attributes |
protected NamespaceContextImplementation |
_namespaceScopeContext |
_b, _characterEncodingSchemeSystemDefault, _charBuffer, _markIndex, _octetBuffer, _octetBufferIndex, _s, _terminate, _v, _vData, attributeValueMapTotalCharactersConstraint, CHARACTER_ENCODING_SCHEME_SYSTEM_PROPERTY, characterContentChunkMapTotalCharactersConstraint, maxAttributeValueSize, maxCharacterContentChunkSize, minAttributeValueSize, minCharacterContentChunkSizeATTRIBUTE_VALUE_MAP_MEMORY_CONSTRAINT, BUFFER_SIZE_PROPERTY, CHARACTER_CONTENT_CHUNK_MAP_MEMORY_CONSTRAINT, EXTERNAL_VOCABULARIES_PROPERTY, IGNORE_COMMENTS_FEATURE, IGNORE_DTD_FEATURE, IGNORE_PROCESSING_INSTRUCTIONS_FEATURE, IGNORE_WHITE_SPACE_TEXT_CONTENT_FEATURE, MAX_ATTRIBUTE_VALUE_SIZE, MAX_CHARACTER_CONTENT_CHUNK_SIZE, MIN_ATTRIBUTE_VALUE_SIZE, MIN_CHARACTER_CONTENT_CHUNK_SIZE, REGISTERED_ENCODING_ALGORITHMS_PROPERTY, UTF_16BE, UTF_8| Constructor and Description |
|---|
DOMDocumentSerializer() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
encodeAttribute(java.lang.String namespaceURI,
java.lang.String qName,
java.lang.String localName) |
protected void |
encodeElement(java.lang.String namespaceURI,
java.lang.String qName,
java.lang.String localName) |
void |
serialize(org.w3c.dom.Document d)
Serialize a
Document. |
void |
serialize(org.w3c.dom.Node n)
Serialize a
Node. |
protected void |
serializeCDATA(org.w3c.dom.Node t) |
protected void |
serializeComment(org.w3c.dom.Node c) |
protected void |
serializeElement(org.w3c.dom.Node e) |
protected void |
serializeElementAsDocument(org.w3c.dom.Node e) |
protected void |
serializeProcessingInstruction(org.w3c.dom.Node pi) |
protected void |
serializeText(org.w3c.dom.Node t) |
canAddAttributeToTable, canAddCharacterContentToTable, encodeAIIBuiltInAlgorithmData, encodeAIIObjectAlgorithmData, encodeAIIOctetAlgorithmData, encodeAlphabetCharacters, encodeAttributeQualifiedNameOnSecondBit, encodeCharacters, encodeCharactersNoClone, encodeCIIBuiltInAlgorithmData, encodeCIIBuiltInAlgorithmDataAsCDATA, encodeCIIObjectAlgorithmData, encodeCIIOctetAlgorithmData, encodeComment, encodeCommentNoClone, encodeDateTimeFourBitCharacters, encodeDateTimeNonIdentifyingStringOnFirstBit, 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, encodeNumericFourBitCharacters, encodeNumericNonIdentifyingStringOnFirstBit, encodeProcessingInstruction, encodeTermination, encodeUtf16String, encodeUtf16String, encodeUTF8String, encodeUTF8String, getAttributeValueMapMemoryLimit, getCharacterContentChunkMapMemoryLimit, getCharacterEncodingScheme, getIgnoreComments, getIgnoreDTD, getIgnoreProcesingInstructions, getIgnoreWhiteSpaceTextContent, getMaxAttributeValueSize, getMaxCharacterContentChunkSize, getMinAttributeValueSize, getMinCharacterContentChunkSize, getPrefixFromQualifiedName, getRegisteredEncodingAlgorithms, getVocabularyApplicationData, hasMark, isAttributeValueLengthMatchesLimit, isCharacterContentChunkLengthMatchesLimit, isWhiteSpace, isWhiteSpace, mark, reset, resetMark, setAttributeValueMapMemoryLimit, setCharacterContentChunkMapMemoryLimit, setCharacterEncodingScheme, setExternalVocabulary, setIgnoreComments, setIgnoreDTD, setIgnoreProcesingInstructions, setIgnoreWhiteSpaceTextContent, setMaxAttributeValueSize, setMaxCharacterContentChunkSize, setMinAttributeValueSize, setMinCharacterContentChunkSize, setOutputStream, setRegisteredEncodingAlgorithms, setVocabulary, setVocabularyApplicationData, write, write, writecharacters, endDocument, endElement, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping, unparsedEntityDecl, warningprotected NamespaceContextImplementation _namespaceScopeContext
protected org.w3c.dom.Node[] _attributes
public final void serialize(org.w3c.dom.Node n)
throws java.io.IOException
Node.n - the node to serialize.java.io.IOExceptionpublic final void serialize(org.w3c.dom.Document d)
throws java.io.IOException
Document.d - the document to serialize.java.io.IOExceptionprotected final void serializeElementAsDocument(org.w3c.dom.Node e)
throws java.io.IOException
java.io.IOExceptionprotected final void serializeElement(org.w3c.dom.Node e)
throws java.io.IOException
java.io.IOExceptionprotected final void serializeText(org.w3c.dom.Node t)
throws java.io.IOException
java.io.IOExceptionprotected final void serializeCDATA(org.w3c.dom.Node t)
throws java.io.IOException
java.io.IOExceptionprotected final void serializeComment(org.w3c.dom.Node c)
throws java.io.IOException
java.io.IOExceptionprotected final void serializeProcessingInstruction(org.w3c.dom.Node pi)
throws java.io.IOException
java.io.IOExceptionprotected final void encodeElement(java.lang.String namespaceURI,
java.lang.String qName,
java.lang.String localName)
throws java.io.IOException
java.io.IOExceptionprotected final void encodeAttribute(java.lang.String namespaceURI,
java.lang.String qName,
java.lang.String localName)
throws java.io.IOException
java.io.IOException