| com.sun.xml.fastinfoset.Encoder com.sun.xml.fastinfoset.stax.StAXDocumentSerializer
Method Summary | |
public void | close() | protected void | encodeTerminationAndCurrentElement(boolean terminateAfter) | public void | flush() | final public int | getLocalNameIndex() | public NamespaceContext | getNamespaceContext() | final public int | getNextAttributeIndex() | final public int | getNextElementIndex() | final public int | getNextLocalNameIndex() | public String | getPrefix(String uri) | public Object | getProperty(java.lang.String name) | final public void | initiateLowLevelWriting() | public void | reset() | public void | setDefaultNamespace(String uri) | public void | setEncoding(String encoding) | public void | setManager(StAXManager manager) | public void | setNamespaceContext(NamespaceContext context) Sets the current namespace context for prefix and uri bindings.
This context becomes the root namespace context for writing and
will replace the current root namespace context. | public void | setPrefix(String prefix, String uri) | public void | writeAttribute(String localName, String value) | public void | writeAttribute(String namespaceURI, String localName, String value) | public void | writeAttribute(String prefix, String namespaceURI, String localName, String value) | public void | writeCData(String data) | public void | writeCharacters(String text) | public void | writeCharacters(char[] text, int start, int len) | public void | writeComment(String data) | public void | writeDTD(String dtd) | public void | writeDefaultNamespace(String namespaceURI) | public void | writeEmptyElement(String localName) | public void | writeEmptyElement(String namespaceURI, String localName) | public void | writeEmptyElement(String prefix, String localName, String namespaceURI) | public void | writeEndDocument() | public void | writeEndElement() | public void | writeEntityRef(String name) | final public boolean | writeLowLevelAttribute(String prefix, String namespaceURI, String localName) | final public void | writeLowLevelAttributeIndexed(int index) | final public void | writeLowLevelAttributeValue(String value) | final public void | writeLowLevelEndElement() | final public void | writeLowLevelEndNamespaces() | final public void | writeLowLevelEndStartElement() | final public void | writeLowLevelNamespace(String prefix, String namespaceName) | final public void | writeLowLevelOctets(byte[] octets, int length) | final public void | writeLowLevelStartAttributes() | final public boolean | writeLowLevelStartElement(int type, String prefix, String localName, String namespaceURI) | final public void | writeLowLevelStartElementIndexed(int type, int index) | final public void | writeLowLevelStartNameLiteral(int type, String prefix, byte[] utf8LocalName, String namespaceURI) | final public void | writeLowLevelStartNameLiteral(int type, String prefix, int localNameIndex, String namespaceURI) | final public void | writeLowLevelStartNamespaces() | final public void | writeLowLevelTerminationAndMark() | final public void | writeLowLevelText(char[] text, int length) | final public void | writeLowLevelText(String text) | public void | writeNamespace(String prefix, String namespaceURI) | public void | writeOctets(byte[] b, int start, int len) | public void | writeProcessingInstruction(String target) | public void | writeProcessingInstruction(String target, String data) | public void | writeStartDocument() | public void | writeStartDocument(String version) | public void | writeStartDocument(String encoding, String version) | public void | writeStartElement(String localName) | public void | writeStartElement(String namespaceURI, String localName) | public void | writeStartElement(String prefix, String localName, String namespaceURI) |
_attributesArray | protected String[] _attributesArray(Code) | | List of attributes qnames and values defined in the current element.
|
_attributesArrayIndex | protected int _attributesArrayIndex(Code) | | |
_currentLocalName | protected String _currentLocalName(Code) | | Local name of current element.
|
_currentPrefix | protected String _currentPrefix(Code) | | Prefix of current element.
|
_currentUri | protected String _currentUri(Code) | | Namespace of current element.
|
_inStartElement | protected boolean _inStartElement(Code) | | This flag indicates when there is a pending start element event.
|
_isEmptyElement | protected boolean _isEmptyElement(Code) | | This flag indicates if the current element is empty.
|
_namespacesArray | protected String[] _namespacesArray(Code) | | List of namespaces defined in the current element.
|
_namespacesArrayIndex | protected int _namespacesArrayIndex(Code) | | |
_nsSupportContextStack | protected boolean[] _nsSupportContextStack(Code) | | |
_stackCount | protected int _stackCount(Code) | | |
StAXDocumentSerializer | public StAXDocumentSerializer()(Code) | | |
encodeTerminationAndCurrentElement | protected void encodeTerminationAndCurrentElement(boolean terminateAfter) throws XMLStreamException(Code) | | |
getLocalNameIndex | final public int getLocalNameIndex()(Code) | | |
getNextAttributeIndex | final public int getNextAttributeIndex()(Code) | | |
getNextElementIndex | final public int getNextElementIndex()(Code) | | |
getNextLocalNameIndex | final public int getNextLocalNameIndex()(Code) | | |
reset | public void reset()(Code) | | |
setNamespaceContext | public void setNamespaceContext(NamespaceContext context) throws XMLStreamException(Code) | | Sets the current namespace context for prefix and uri bindings.
This context becomes the root namespace context for writing and
will replace the current root namespace context. Subsequent calls
to setPrefix and setDefaultNamespace will bind namespaces using
the context passed to the method as the root context for resolving
namespaces. This method may only be called once at the start of
the document. It does not cause the namespaces to be declared.
If a namespace URI to prefix mapping is found in the namespace
context it is treated as declared and the prefix may be used
by the StreamWriter.
Parameters: context - the namespace context to use for this writer, may not be null throws: XMLStreamException - |
writeLowLevelAttributeIndexed | final public void writeLowLevelAttributeIndexed(int index) throws IOException(Code) | | |
writeLowLevelEndElement | final public void writeLowLevelEndElement() throws IOException(Code) | | |
writeLowLevelEndNamespaces | final public void writeLowLevelEndNamespaces() throws IOException(Code) | | |
writeLowLevelEndStartElement | final public void writeLowLevelEndStartElement() throws IOException(Code) | | |
writeLowLevelOctets | final public void writeLowLevelOctets(byte[] octets, int length) throws IOException(Code) | | |
writeLowLevelStartAttributes | final public void writeLowLevelStartAttributes() throws IOException(Code) | | |
writeLowLevelStartElementIndexed | final public void writeLowLevelStartElementIndexed(int type, int index) throws IOException(Code) | | |
writeLowLevelStartNameLiteral | final public void writeLowLevelStartNameLiteral(int type, String prefix, byte[] utf8LocalName, String namespaceURI) throws IOException(Code) | | |
writeLowLevelStartNameLiteral | final public void writeLowLevelStartNameLiteral(int type, String prefix, int localNameIndex, String namespaceURI) throws IOException(Code) | | |
writeLowLevelStartNamespaces | final public void writeLowLevelStartNamespaces() throws IOException(Code) | | |
writeLowLevelTerminationAndMark | final public void writeLowLevelTerminationAndMark() throws IOException(Code) | | |
writeLowLevelText | final public void writeLowLevelText(char[] text, int length) throws IOException(Code) | | |
Methods inherited from com.sun.xml.fastinfoset.Encoder | final protected void encodeAIIBuiltInAlgorithmData(int id, Object data, int offset, int length) throws IOException(Code)(Java Doc) final protected void encodeAIIObjectAlgorithmData(int id, Object data, EncodingAlgorithm ea) throws FastInfosetException, IOException(Code)(Java Doc) final protected void encodeAIIOctetAlgorithmData(int id, byte[] d, int offset, int length) throws IOException(Code)(Java Doc) final protected void encodeAlphabetCharacters(String alphabet, char[] ch, int offset, int length, boolean addToTable) throws FastInfosetException, IOException(Code)(Java Doc) final protected void encodeAttributeQualifiedNameOnSecondBit(String namespaceURI, String prefix, String localName) throws IOException(Code)(Java Doc) final protected void encodeCIIBuiltInAlgorithmData(int id, Object data, int offset, int length) throws FastInfosetException, IOException(Code)(Java Doc) final protected void encodeCIIBuiltInAlgorithmDataAsCDATA(char[] ch, int offset, int length) throws FastInfosetException, IOException(Code)(Java Doc) final protected void encodeCIIObjectAlgorithmData(int id, Object data, EncodingAlgorithm ea) throws FastInfosetException, IOException(Code)(Java Doc) final protected void encodeCIIOctetAlgorithmData(int id, byte[] d, int offset, int length) throws IOException(Code)(Java Doc) final protected void encodeCharacters(char[] ch, int offset, int length) throws IOException(Code)(Java Doc) final protected void encodeCharactersNoClone(char[] ch, int offset, int length) throws IOException(Code)(Java Doc) final protected void encodeComment(char[] ch, int offset, int length) throws IOException(Code)(Java Doc) final protected void encodeCommentNoClone(char[] ch, int offset, int length) throws IOException(Code)(Java Doc) final protected void encodeDocumentTermination() throws IOException(Code)(Java Doc) final protected void encodeDocumentTypeDeclaration(String systemId, String publicId) throws IOException(Code)(Java Doc) final protected void encodeElementQualifiedNameOnThirdBit(String namespaceURI, String prefix, String localName) throws IOException(Code)(Java Doc) final protected void encodeElementTermination() throws IOException(Code)(Java Doc) final protected void encodeFourBitCharacters(int id, int[] table, char[] ch, int offset, int length, boolean addToTable) throws FastInfosetException, IOException(Code)(Java Doc) final protected void encodeHeader(boolean encodeXmlDecl) throws IOException(Code)(Java Doc) final protected void encodeIdentifyingNonEmptyStringOnFirstBit(String s, StringIntMap map) throws IOException(Code)(Java Doc) final protected void encodeInitialVocabulary() throws IOException(Code)(Java Doc) final protected boolean encodeLiteralAttributeQualifiedNameOnSecondBit(String namespaceURI, String prefix, String localName, LocalNameQualifiedNamesMap.Entry entry) throws IOException(Code)(Java Doc) final protected void encodeLiteralElementQualifiedNameOnThirdBit(String namespaceURI, String prefix, String localName, LocalNameQualifiedNamesMap.Entry entry) throws IOException(Code)(Java Doc) final protected void encodeNamespaceAttribute(String prefix, String uri) throws IOException(Code)(Java Doc) final protected void encodeNonEmptyCharacterStringOnFifthBit(String s) throws IOException(Code)(Java Doc) final protected void encodeNonEmptyCharacterStringOnFifthBit(char[] ch, int offset, int length) throws IOException(Code)(Java Doc) final protected void encodeNonEmptyCharacterStringOnSeventhBit(char[] ch, int offset, int length) throws IOException(Code)(Java Doc) final protected void encodeNonEmptyFourBitCharacterString(int[] table, char[] ch, int offset, int octetPairLength, int octetSingleLength) throws FastInfosetException, IOException(Code)(Java Doc) final protected void encodeNonEmptyFourBitCharacterStringOnSeventhBit(int[] table, char[] ch, int offset, int length) throws FastInfosetException, IOException(Code)(Java Doc) final protected void encodeNonEmptyNBitCharacterStringOnSeventhBit(String alphabet, char[] ch, int offset, int length) throws FastInfosetException, IOException(Code)(Java Doc) final protected void encodeNonEmptyOctetStringOnSecondBit(String s) throws IOException(Code)(Java Doc) final protected void encodeNonEmptyUTF8StringAsOctetString(int b, String s, int[] constants) throws IOException(Code)(Java Doc) final protected void encodeNonEmptyUTF8StringAsOctetString(int b, char ch, int offset, int length, int[] constants) throws IOException(Code)(Java Doc) final protected void encodeNonIdentifyingStringOnFirstBit(String s, StringIntMap map, boolean addToTable) throws IOException(Code)(Java Doc) final protected void encodeNonIdentifyingStringOnFirstBit(String s, CharArrayIntMap map, boolean addToTable) throws IOException(Code)(Java Doc) final protected void encodeNonIdentifyingStringOnFirstBit(char[] ch, int offset, int length, CharArrayIntMap map, boolean addToTable, boolean clone) throws IOException(Code)(Java Doc) final protected void encodeNonIdentifyingStringOnFirstBit(int id, int[] table, String s, boolean addToTable) throws IOException, FastInfosetException(Code)(Java Doc) final protected void encodeNonIdentifyingStringOnFirstBit(String URI, int id, Object data) throws FastInfosetException, IOException(Code)(Java Doc) final protected void encodeNonIdentifyingStringOnThirdBit(char[] ch, int offset, int length, CharArrayIntMap map, boolean addToTable, boolean clone) throws IOException(Code)(Java Doc) final protected void encodeNonIdentifyingStringOnThirdBit(String URI, int id, Object data) throws FastInfosetException, IOException(Code)(Java Doc) final protected void encodeNonIdentifyingStringOnThirdBit(String URI, int id, byte[] d, int offset, int length) throws FastInfosetException, IOException(Code)(Java Doc) final protected void encodeNonZeroInteger(int b, int i, int[] constants) throws IOException(Code)(Java Doc) final protected void encodeNonZeroIntegerOnFourthBit(int i) throws IOException(Code)(Java Doc) final protected void encodeNonZeroIntegerOnSecondBitFirstBitOne(int i) throws IOException(Code)(Java Doc) final protected void encodeNonZeroIntegerOnSecondBitFirstBitZero(int i) throws IOException(Code)(Java Doc) final protected void encodeNonZeroIntegerOnThirdBit(int i) throws IOException(Code)(Java Doc) final protected void encodeNonZeroOctetStringLength(int b, int length, int[] constants) throws IOException(Code)(Java Doc) final protected void encodeNonZeroOctetStringLengthOnFifthBit(int length) throws IOException(Code)(Java Doc) final protected void encodeNonZeroOctetStringLengthOnSecondBit(int length) throws IOException(Code)(Java Doc) final protected void encodeNonZeroOctetStringLengthOnSenventhBit(int length) throws IOException(Code)(Java Doc) final protected void encodeProcessingInstruction(String target, String data) throws IOException(Code)(Java Doc) final protected void encodeTermination() throws IOException(Code)(Java Doc) final protected int encodeUTF8String(String s) throws IOException(Code)(Java Doc) final protected int encodeUTF8String(char[] ch, int offset, int length) throws IOException(Code)(Java Doc) final protected int encodeUtf16String(String s) throws IOException(Code)(Java Doc) final protected int encodeUtf16String(char[] ch, int offset, int length) throws IOException(Code)(Java Doc) public int getAttributeValueMapMemoryLimit()(Code)(Java Doc) public int getAttributeValueSizeLimit()(Code)(Java Doc) public int getCharacterContentChunkMapMemoryLimit()(Code)(Java Doc) public int getCharacterContentChunkSizeLimit()(Code)(Java Doc) public String getCharacterEncodingScheme()(Code)(Java Doc) final public boolean getIgnoreComments()(Code)(Java Doc) final public boolean getIgnoreDTD()(Code)(Java Doc) final public boolean getIgnoreProcesingInstructions()(Code)(Java Doc) final public boolean getIgnoreWhiteSpaceTextContent()(Code)(Java Doc) public static String getPrefixFromQualifiedName(String qName)(Code)(Java Doc) public Map getRegisteredEncodingAlgorithms()(Code)(Java Doc) public VocabularyApplicationData getVocabularyApplicationData()(Code)(Java Doc) final protected boolean hasMark()(Code)(Java Doc) public boolean isAttributeValueLengthMatchesLimit(int length)(Code)(Java Doc) public boolean isCharacterContentChunkLengthMatchesLimit(int length, CharArrayIntMap map)(Code)(Java Doc) public static boolean isWhiteSpace(char[] ch, int start, int length)(Code)(Java Doc) public static boolean isWhiteSpace(String s)(Code)(Java Doc) final protected void mark()(Code)(Java Doc) public void reset()(Code)(Java Doc) final protected void resetMark()(Code)(Java Doc) public void setAttributeValueMapMemoryLimit(int size)(Code)(Java Doc) public void setAttributeValueSizeLimit(int size)(Code)(Java Doc) public void setCharacterContentChunkMapMemoryLimit(int size)(Code)(Java Doc) public void setCharacterContentChunkSizeLimit(int size)(Code)(Java Doc) public void setCharacterEncodingScheme(String characterEncodingScheme)(Code)(Java Doc) public void setExternalVocabulary(ExternalVocabulary v)(Code)(Java Doc) final public void setIgnoreComments(boolean ignoreComments)(Code)(Java Doc) final public void setIgnoreDTD(boolean ignoreDTD)(Code)(Java Doc) final public void setIgnoreProcesingInstructions(boolean ignoreProcesingInstructions)(Code)(Java Doc) final public void setIgnoreWhiteSpaceTextContent(boolean ignoreWhiteSpaceTextContent)(Code)(Java Doc) public void setOutputStream(OutputStream s)(Code)(Java Doc) public void setRegisteredEncodingAlgorithms(Map algorithms)(Code)(Java Doc) public void setVocabulary(SerializerVocabulary vocabulary)(Code)(Java Doc) public void setVocabularyApplicationData(VocabularyApplicationData data)(Code)(Java Doc) final protected void write(int i) throws IOException(Code)(Java Doc) final protected void write(byte[] b, int length) throws IOException(Code)(Java Doc) final protected void write(byte[] b, int offset, int length) throws IOException(Code)(Java Doc)
|
|
|