AbstractMap in order to support a getter for
implementation-specific properties. For example, you can get
the underlying OutputStream by casting an instance
of this class to Map and calling
getProperty(OUTPUTSTREAM_PROPERTY).
| Modifier and Type | Class and Description |
|---|---|
| pack-priv class | XMLStreamWriterImpl.
Attributes |
| protected class | |
| pack-priv class | XMLStreamWriterImpl.
Maintains element state . |
| pack-priv class | XMLStreamWriterImpl.
Implementation of NamespaceContext . |
| Modifier and Type | Field and Description |
|---|---|
| public static final String | |
| public static final char | |
| public static final char | |
| public static final String | |
| private final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| private List | fAttributeCache
Collects attributes when the writer is in reparing mode. |
| pack-priv Map | fAttrNamespace
This is used to hold the namespace for attributes which happen to have the same uri as the default namespace; It's added to avoid changing the current impl. |
| private XMLStreamWriterImpl. | |
| private CharsetEncoder | fEncoder
In some cases, this charset encoder is used to determine if a char is encodable by underlying writer. |
| pack-priv boolean | fEscapeCharacters
This flag can be used to turn escaping off for content. |
| private NamespaceSupport | |
| private boolean | fIsRepairingNamespace
Flag for the value of repairNamespace property |
| private XMLStreamWriterImpl. | fNamespaceContext
Namespace context encapsulating user specified context and context built by the writer |
| private List | fNamespaceDecls
Collects namespace declarations when the writer is in reparing mode. |
| private OutputStream | fOutputStream
Underlying OutputStream to which |
| private Random | |
| private PropertyManager | fPropertyManager
Reference to PropertyManager |
| private final ReadOnlyIterator | |
| private boolean | fReuse
Boolean flag to indicate, if instance can be reused |
| private boolean | fStartTagOpened
Flag to track if start tag is opened |
| private SymbolTable | |
| private Writer | fWriter
Underlying Writer to which characters are written. |
| public static final String | |
| public static final char | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String |
| Access | Constructor and Description |
|---|---|
| public | XMLStreamWriterImpl(OutputStream
Underlying stream to write the bytes to outputStream, PropertyManager Properties used by this writer props)Creates a new instance of XMLStreamWriterImpl. |
| public | XMLStreamWriterImpl(OutputStream
Underlying stream to write the bytes outputStream, String Encoding used to convert chars into bytes encoding, PropertyManager Properties used by this writer props)Creates a new instance of XMLStreamWriterImpl. |
| public | XMLStreamWriterImpl(Writer
Underlying writer to which chars are written writer, PropertyManager Properties used by this writer props)Creates a new instance of XMLStreamWriterImpl using a Writer. |
| public | XMLStreamWriterImpl(StreamResult sr, String encoding, PropertyManager
Properties used by this writer props)Creates a new instance of XMLStreamWriterImpl using a StreamResult. |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| public boolean | Returns: boolean boolean value to indicate if this instance can be reused or notCan this instance be reused |
| pack-priv void | |
| private boolean | |
| public void | close()
Implements javax. Close this XMLStreamWriter by closing underlying writer. |
| private void | |
| public boolean | containsKey(Object key)
Overrides java. Implements java. Returns |
| private void | |
| pack-priv void | |
| public Set | entrySet()
Implements abstract java. Implements java. Returns a |
| public boolean | equals(Object obj)
Overrides java. Implements java. Overrides the method defined in AbstractMap This is required to satisfy the contract for hashCode. |
| public void | flush()
Implements javax. Flush this XMLStreamWriter by flushin underlying writer. |
| public Object | get(Object key)
Overrides java. Implements java. Returns the value associated to an implementation-specific property. |
| private String | getAttrPrefix(String uri)
return the prefix if the attribute has an uri the same as that of the default namespace |
| public boolean | |
| public NamespaceContext | Returns: NamespaceContextImplements javax. Return |
| public String | getPrefix(String
The namespace uri uri)Implements javax. Return a prefix associated with specified uri, or null if the uri is unknown. |
| public Object | Returns: value associated with the specified property.Property name str)Implements javax. Returns value associated with the specified property name. |
| public int | hashCode()
Overrides java. Implements java. Overrides the method defined in AbstractMap This is required by the toString() method |
| private void | |
| pack-priv boolean | |
| private boolean | |
| public boolean | isEmpty()
Overrides java. Implements java. Returns |
| private void | |
| pack-priv void | |
| protected void | |
| pack-priv void | |
| public void | |
| pack-priv void | reset(boolean
Indicates if properties should be read again resetProperties)Reset this instance so that it can be re-used. |
| public void | setDefaultNamespace(String
Namespace URI uri)Implements javax. Set the specified URI as default namespace in the current namespace context. |
| public void | |
| public void | setNamespaceContext(NamespaceContext
the namespace context to use for this writer, may not be null namespaceContext)Implements javax. Sets the current |
| public void | setOutput(StreamResult
StreamResult encapsulating output information sr, String Encoding to be used except when a Writer is available encoding)Use a StreamResult to initialize the output for this XMLStreamWriter. |
| private void | setOutputUsingStream(OutputStream
Underlying OutputStream os, String Encoding used to convert chars into bytes encoding)Utility method to create a writer when passed an OutputStream. |
| private void | |
| public void | setPrefix(String prefix, String uri)
Implements javax. Sets the prefix the uri is bound to. |
| public int | size()
Overrides java. Implements java. Returns the number of key-value mappings in this map. |
| public String | toString()
Overrides java. Overrides the method defined in AbstractMap which is not completely implemented. |
| private void | verifyEncoding(String
the specified encoding encoding)Verifies that the encoding is consistent between the underlying encoding and that specified. |
| public void | writeAttribute(String localName, String value)
Implements javax. Writes an attribute to the output stream without a prefix. |
| public void | writeAttribute(String namespaceURI, String localName, String value)
Implements javax. Writes an attribute to the output stream |
| public void | writeAttribute(String prefix, String namespaceURI, String localName, String value)
Implements javax. Writes an attribute to the output stream |
| private void | |
| public void | writeCData(String cdata)
Implements javax. Writes a CData section |
| public void | writeCharacters(String data)
Implements javax. Write text to the output |
| public void | writeCharacters(char[] data, int start, int len)
Implements javax. Write text to the output |
| private void | |
| public void | writeComment(String comment)
Implements javax. Writes an xml comment with the data enclosed |
| public void | writeDefaultNamespace(String namespaceURI)
Implements javax. Writes the default namespace to the stream |
| public void | |
| public void | writeEmptyElement(String localName)
Implements javax. Writes an empty element tag to the output |
| public void | writeEmptyElement(String namespaceURI, String localName)
Implements javax. Writes an empty element tag to the output |
| public void | writeEmptyElement(String prefix, String localName, String namespaceURI)
Implements javax. Writes an empty element tag to the output |
| public void | writeEndDocument()
Implements javax. Closes any start tags and writes corresponding end tags. |
| public void | writeEndElement()
Implements javax. Writes an end tag to the output relying on the internal state of the writer to determine the prefix and local name of the event. |
| public void | writeEntityRef(String refName)
Implements javax. Writes an entity reference |
| public void | writeNamespace(String
Prefix to bind. prefix, String NamespaceURI to declare. namespaceURI)Implements javax. Write a Namespace declaration. |
| private void | |
| public void | writeProcessingInstruction(String target)
Implements javax. Writes a processing instruction |
| public void | writeProcessingInstruction(String target, String data)
Implements javax. Writes a processing instruction |
| public void | writeStartDocument()
Implements javax. Writes the XML declaration. |
| public void | writeStartDocument(String
the specified version version)Implements javax. Writes the XML declaration. |
| public void | writeStartDocument(String
the specified encoding encoding, String the specified version version)Implements javax. Writes the XML declaration. |
| public void | writeStartDocument(String encoding, String version, boolean standalone, boolean standaloneSet)
Implements com. Writes the XML declaration. |
| public void | writeStartElement(String localName)
Implements javax. Writes a start tag to the output. |
| public void | writeStartElement(String namespaceURI, String localName)
Implements javax. Writes a start tag to the output |
| public void | writeStartElement(String prefix, String localName, String namespaceURI)
Implements javax. Writes a start tag to the output |
| private void | writeXMLContent(char[] content, int start, int length, boolean escapeChars)
Writes XML content to underlying writer. |
| private void | |
| private void | writeXMLContent(String content, boolean escapeChars, boolean escapeDoubleQuotes)
Writes XML content to underlying writer. |