public class FastInfosetWriter extends com.sun.xml.fastinfoset.stax.StAXDocumentSerializer implements XMLWriter
_attributesArray, _attributesArrayIndex, _currentLocalName, _currentPrefix, _currentUri, _encoding, _inStartElement, _isEmptyElement, _manager, _namespacesArray, _namespacesArrayIndex, _nsContext, _nsSupportContextStack, _stackCount_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 |
|---|
FastInfosetWriter(OutputStream os,
String encoding) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the writer and its underlying stream.
|
void |
endElement()
Write the end tag for the current element.
|
void |
flush()
Flush the writer and its underlying stream.
|
String |
getPrefix(String uri)
Return a prefix for the given URI.
|
PrefixFactory |
getPrefixFactory()
Return the prefix factory in use by this writer.
|
String |
getURI(String prefix)
Return the URI for a given prefix.
|
void |
reset() |
void |
setPrefixFactory(PrefixFactory factory)
Set the prefix factory to be used by this writer.
|
void |
startElement(QName name)
Write the start tag for an element.
|
void |
startElement(QName name,
String prefix)
Write the start tag for an element.
|
void |
startElement(String localName)
Write the start tag for an element.
|
void |
startElement(String localName,
String uri)
Write the start tag for an element.
|
void |
startElement(String localName,
String uri,
String prefix)
Write the start tag for an element.
|
void |
writeAttribute(QName name,
String value)
Write an attribute of the current element.
|
void |
writeAttribute(String localName,
String value)
Write an attribute of the current element.
|
void |
writeAttribute(String localName,
String uri,
String value)
Write an attribute of the current element.
|
void |
writeAttributeUnquoted(QName name,
String value)
Write an attribute (unquoted) of the current element.
|
void |
writeAttributeUnquoted(String localName,
String value)
Write an attribute (unquoted) of the current element.
|
void |
writeAttributeUnquoted(String localName,
String uri,
String value)
Write an attribute (unquoted) of the current element.
|
void |
writeBytes(byte[] b,
int start,
int length)
Backdoor method to encode bytes using the base64 built-in algorithm that
FI supports.
|
void |
writeChars(CDATA chars)
Write character data within an element.
|
void |
writeChars(String chars)
Write character data within an element.
|
void |
writeCharsUnquoted(char[] buf,
int offset,
int len)
Write character data within an element, skipping quoting.
|
void |
writeCharsUnquoted(String chars)
Write character data within an element, skipping quoting.
|
void |
writeComment(String comment)
Write a comment within an element.
|
void |
writeNamespaceDeclaration(String uri)
Write a namespace declaration of the current element.
|
void |
writeNamespaceDeclaration(String prefix,
String uri)
Write a namespace declaration of the current element.
|
void |
writeStartDocument() |
encodeTerminationAndCurrentElement, getLocalNameIndex, getNamespaceContext, getNextAttributeIndex, getNextElementIndex, getNextLocalNameIndex, getProperty, initiateLowLevelWriting, setDefaultNamespace, setEncoding, setManager, setNamespaceContext, setPrefix, writeAttribute, writeCData, writeCharacters, writeCharacters, writeDefaultNamespace, writeDTD, writeEmptyElement, writeEmptyElement, writeEmptyElement, writeEndDocument, writeEndElement, writeEntityRef, writeLowLevelAttribute, writeLowLevelAttributeIndexed, writeLowLevelAttributeValue, writeLowLevelEndElement, writeLowLevelEndNamespaces, writeLowLevelEndStartElement, writeLowLevelNamespace, writeLowLevelOctets, writeLowLevelStartAttributes, writeLowLevelStartElement, writeLowLevelStartElementIndexed, writeLowLevelStartNameLiteral, writeLowLevelStartNameLiteral, writeLowLevelStartNamespaces, writeLowLevelTerminationAndMark, writeLowLevelText, writeLowLevelText, writeNamespace, writeOctets, writeProcessingInstruction, writeProcessingInstruction, writeStartDocument, writeStartDocument, writeStartElement, writeStartElement, writeStartElementcanAddAttributeToTable, 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, 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, warningpublic FastInfosetWriter(OutputStream os, String encoding)
public void reset()
reset in interface org.jvnet.fastinfoset.FastInfosetSerializerreset in class com.sun.xml.fastinfoset.stax.StAXDocumentSerializerpublic void writeStartDocument()
writeStartDocument in interface XMLStreamWriterwriteStartDocument in class com.sun.xml.fastinfoset.stax.StAXDocumentSerializerpublic void writeAttribute(String localName, String value)
XMLWriterwriteAttribute in interface XMLWriterwriteAttribute in interface XMLStreamWriterwriteAttribute in class com.sun.xml.fastinfoset.stax.StAXDocumentSerializerpublic void startElement(QName name)
XMLWriterstartElement in interface XMLWriterpublic void startElement(String localName)
XMLWriterstartElement in interface XMLWriterpublic void startElement(String localName, String uri)
startElement in interface XMLWriterpublic void startElement(String localName, String uri, String prefix)
startElement in interface XMLWriterpublic void writeAttribute(String localName, String uri, String value)
writeAttribute in interface XMLWriterwriteAttribute in interface XMLStreamWriterwriteAttribute in class com.sun.xml.fastinfoset.stax.StAXDocumentSerializerpublic void startElement(QName name, String prefix)
XMLWriterstartElement in interface XMLWriterpublic void writeAttribute(QName name, String value)
XMLWriterwriteAttribute in interface XMLWriterpublic void writeAttributeUnquoted(String localName, String value)
writeAttributeUnquoted in interface XMLWriterpublic void writeAttributeUnquoted(String localName, String uri, String value)
writeAttributeUnquoted in interface XMLWriterpublic void writeAttributeUnquoted(QName name, String value)
XMLWriterwriteAttributeUnquoted in interface XMLWriterpublic void writeNamespaceDeclaration(String prefix, String uri)
writeNamespaceDeclaration in interface XMLWriterpublic void writeNamespaceDeclaration(String uri)
writeNamespaceDeclaration in interface XMLWriterpublic void writeChars(String chars)
writeChars in interface XMLWriterpublic void writeChars(CDATA chars)
writeChars in interface XMLWriterpublic void writeCharsUnquoted(String chars)
writeCharsUnquoted in interface XMLWriterpublic void writeCharsUnquoted(char[] buf,
int offset,
int len)
writeCharsUnquoted in interface XMLWriterpublic void writeComment(String comment)
writeComment in interface XMLWriterwriteComment in interface XMLStreamWriterwriteComment in class com.sun.xml.fastinfoset.stax.StAXDocumentSerializerpublic void endElement()
endElement in interface XMLWriterpublic PrefixFactory getPrefixFactory()
getPrefixFactory in interface XMLWriterpublic void setPrefixFactory(PrefixFactory factory)
setPrefixFactory in interface XMLWriterpublic String getURI(String prefix)
public String getPrefix(String uri)
If no prefix for the given URI is in scope, return null.
getPrefix in interface XMLWritergetPrefix in interface XMLStreamWritergetPrefix in class com.sun.xml.fastinfoset.stax.StAXDocumentSerializerpublic void flush()
flush in interface XMLWriterflush in interface XMLStreamWriterflush in class com.sun.xml.fastinfoset.stax.StAXDocumentSerializerpublic void close()
close in interface XMLWriterclose in interface XMLStreamWriterclose in class com.sun.xml.fastinfoset.stax.StAXDocumentSerializerpublic final void writeBytes(byte[] b,
int start,
int length)
Copyright © 2017–2019 Eclipse Foundation. All rights reserved.