Javolution 6.0.0 java
|
Public Member Functions | |
XMLStreamWriterImpl () | |
void | setOutput (OutputStream out) throws XMLStreamException |
void | setOutput (OutputStream out, String encoding) throws XMLStreamException |
void | setOutput (Writer writer) throws XMLStreamException |
void | setRepairingNamespaces (boolean isRepairingNamespaces) |
void | setRepairingPrefix (String repairingPrefix) |
void | setIndentation (String indentation) |
void | setLineSeparator (String lineSeparator) |
void | setAutomaticEmptyElements (boolean automaticEmptyElements) |
void | setNoEmptyElementTag (boolean noEmptyElementTag) |
void | reset () |
void | writeStartElement (CharSequence localName) throws XMLStreamException |
void | writeStartElement (CharSequence namespaceURI, CharSequence localName) throws XMLStreamException |
void | writeStartElement (CharSequence prefix, CharSequence localName, CharSequence namespaceURI) throws XMLStreamException |
void | writeEmptyElement (CharSequence localName) throws XMLStreamException |
void | writeEmptyElement (CharSequence namespaceURI, CharSequence localName) throws XMLStreamException |
void | writeEmptyElement (CharSequence prefix, CharSequence localName, CharSequence namespaceURI) throws XMLStreamException |
void | writeEndElement () throws XMLStreamException |
void | writeEndDocument () throws XMLStreamException |
void | close () throws XMLStreamException |
void | flush () throws XMLStreamException |
void | writeAttribute (CharSequence localName, CharSequence value) throws XMLStreamException |
void | writeAttribute (CharSequence namespaceURI, CharSequence localName, CharSequence value) throws XMLStreamException |
void | writeAttribute (CharSequence prefix, CharSequence namespaceURI, CharSequence localName, CharSequence value) throws XMLStreamException |
void | writeNamespace (CharSequence prefix, CharSequence namespaceURI) throws XMLStreamException |
void | writeDefaultNamespace (CharSequence namespaceURI) throws XMLStreamException |
void | writeComment (CharSequence data) throws XMLStreamException |
void | writeProcessingInstruction (CharSequence target) throws XMLStreamException |
void | writeProcessingInstruction (CharSequence target, CharSequence data) throws XMLStreamException |
void | writeCData (CharSequence data) throws XMLStreamException |
void | writeDTD (CharSequence dtd) throws XMLStreamException |
void | writeEntityRef (CharSequence name) throws XMLStreamException |
void | writeStartDocument () throws XMLStreamException |
void | writeStartDocument (CharSequence version) throws XMLStreamException |
void | writeStartDocument (CharSequence encoding, CharSequence version) throws XMLStreamException |
void | writeCharacters (CharSequence text) throws XMLStreamException |
void | writeCharacters (char[] text, int start, int length) throws XMLStreamException |
CharSequence | getPrefix (CharSequence uri) throws XMLStreamException |
void | setPrefix (CharSequence prefix, CharSequence uri) throws XMLStreamException |
void | setDefaultNamespace (CharSequence uri) throws XMLStreamException |
Object | getProperty (String name) throws IllegalArgumentException |
Package Functions | |
XMLStreamWriterImpl (XMLOutputFactoryImpl factory) | |
Private Member Functions | |
void | writeNewElement (CharSequence prefix, CharSequence localName, CharSequence namespaceURI) throws XMLStreamException |
void | writeAttributeOrNamespace (CharSequence prefix, CharSequence namespaceURI, CharSequence localName, CharSequence value) throws XMLStreamException |
void | closeOpenTag () throws XMLStreamException |
void | writeNamespaces () throws XMLStreamException |
CharSequence | getRepairedPrefix (CharSequence prefix, CharSequence namespaceURI) throws XMLStreamException |
void | resizeElemStack () |
final void | writeNoEscape (String str) throws XMLStreamException |
final void | writeNoEscape (TextBuilder tb) throws XMLStreamException |
final void | writeNoEscape (CharSequence csq) throws XMLStreamException |
final void | writeEscape (CharSequence csq) throws XMLStreamException |
final void | write (Object csq, int start, int length, boolean escapeMarkup) throws XMLStreamException |
final void | writeDirectEscapedCharacters (char[] chars, int start, int end) throws XMLStreamException |
boolean | isEscaped (char c) |
final void | write (char c) throws XMLStreamException |
void | flushBuffer () throws XMLStreamException |
Static Private Member Functions | |
static void | getChars (CharSequence csq, int start, int end, char dest[], int destPos) |
Private Attributes | |
int | _nesting = 0 |
TextBuilder[] | _qNames = new TextBuilder[16] |
boolean | _isElementOpen |
boolean | _isEmptyElement |
final char[] | _buffer = new char[BUFFER_LENGTH] |
final NamespacesImpl | _namespaces = new NamespacesImpl() |
int | _index |
boolean | _isRepairingNamespaces |
String | _repairingPrefix = "ns" |
String | _indentation |
String | _lineSeparator = "\n" |
int | _indentationLevel |
boolean | _automaticEmptyElements |
boolean | _noEmptyElementTag |
int | _autoNSCount |
boolean | _isAttributeValue |
Writer | _writer |
String | _encoding |
final UTF8StreamWriter | _utf8StreamWriter = new UTF8StreamWriter() |
final XMLOutputFactoryImpl | _factory |
final CharArray | _noChar = new CharArray("") |
final CharArray | _tmpCharArray = new CharArray() |
final TextBuilder | _autoPrefix = new TextBuilder() |
Static Private Attributes | |
static final int | BUFFER_LENGTH = 2048 |
This class represents an implementation of XMLStreamWriter.
The writeCharacters
methods will escape & , < and >. For attribute values, the writeAttribute
methods will escape the above characters plus " and control characters.
Definition at line 36 of file XMLStreamWriterImpl.java.
javolution.xml.internal.stream.XMLStreamWriterImpl.XMLStreamWriterImpl | ( | ) |
Default constructor.
Definition at line 150 of file XMLStreamWriterImpl.java.
|
package |
Factory-based constructor.
Definition at line 157 of file XMLStreamWriterImpl.java.
References javolution.xml.internal.stream.XMLStreamWriterImpl._factory, javolution.xml.internal.stream.XMLStreamWriterImpl._qNames, and javolution.text.TextBuilder.length().
void javolution.xml.internal.stream.XMLStreamWriterImpl.close | ( | ) | throws XMLStreamException |
Close this writer and free any resources associated with the writer. This must not close the underlying output stream.
XMLStreamException |
Implements javolution.xml.stream.XMLStreamWriter.
Definition at line 397 of file XMLStreamWriterImpl.java.
References javolution.xml.internal.stream.XMLStreamWriterImpl._nesting, javolution.xml.internal.stream.XMLStreamWriterImpl._writer, javolution.xml.internal.stream.XMLStreamWriterImpl.flush(), javolution.xml.internal.stream.XMLStreamWriterImpl.reset(), and javolution.xml.internal.stream.XMLStreamWriterImpl.writeEndDocument().
|
private |
Definition at line 708 of file XMLStreamWriterImpl.java.
References javolution.xml.internal.stream.XMLStreamWriterImpl._isElementOpen, javolution.xml.internal.stream.XMLStreamWriterImpl._isEmptyElement, javolution.xml.internal.stream.XMLStreamWriterImpl._namespaces, javolution.xml.internal.stream.XMLStreamWriterImpl._nesting, javolution.xml.internal.stream.XMLStreamWriterImpl._noEmptyElementTag, javolution.xml.internal.stream.XMLStreamWriterImpl._qNames, javolution.xml.internal.stream.NamespacesImpl.pop(), javolution.xml.internal.stream.XMLStreamWriterImpl.write(), javolution.xml.internal.stream.XMLStreamWriterImpl.writeNamespaces(), and javolution.xml.internal.stream.XMLStreamWriterImpl.writeNoEscape().
Referenced by javolution.xml.internal.stream.XMLStreamWriterImpl.writeCData(), javolution.xml.internal.stream.XMLStreamWriterImpl.writeCharacters(), javolution.xml.internal.stream.XMLStreamWriterImpl.writeComment(), javolution.xml.internal.stream.XMLStreamWriterImpl.writeEndDocument(), javolution.xml.internal.stream.XMLStreamWriterImpl.writeEndElement(), javolution.xml.internal.stream.XMLStreamWriterImpl.writeNewElement(), and javolution.xml.internal.stream.XMLStreamWriterImpl.writeProcessingInstruction().
void javolution.xml.internal.stream.XMLStreamWriterImpl.flush | ( | ) | throws XMLStreamException |
Write any cached data to the underlying output mechanism.
XMLStreamException |
Implements javolution.xml.stream.XMLStreamWriter.
Definition at line 408 of file XMLStreamWriterImpl.java.
References javolution.xml.internal.stream.XMLStreamWriterImpl._writer, and javolution.xml.internal.stream.XMLStreamWriterImpl.flushBuffer().
Referenced by javolution.xml.internal.stream.XMLStreamWriterImpl.close(), and javolution.xml.internal.stream.XMLStreamWriterImpl.writeEndDocument().
|
private |
Definition at line 929 of file XMLStreamWriterImpl.java.
References javolution.xml.internal.stream.XMLStreamWriterImpl._buffer, javolution.xml.internal.stream.XMLStreamWriterImpl._index, and javolution.xml.internal.stream.XMLStreamWriterImpl._writer.
Referenced by javolution.xml.internal.stream.XMLStreamWriterImpl.flush(), and javolution.xml.internal.stream.XMLStreamWriterImpl.write().
|
staticprivate |
Definition at line 861 of file XMLStreamWriterImpl.java.
Referenced by javolution.xml.internal.stream.XMLStreamWriterImpl.write().
CharSequence javolution.xml.internal.stream.XMLStreamWriterImpl.getPrefix | ( | CharSequence | uri | ) | throws XMLStreamException |
Gets the prefix the specified uri is bound to.
@param uri namespace URI
null
XMLStreamException |
Implements javolution.xml.stream.XMLStreamWriter.
Definition at line 592 of file XMLStreamWriterImpl.java.
References javolution.xml.internal.stream.XMLStreamWriterImpl._namespaces, and javolution.xml.internal.stream.NamespacesImpl.getPrefix().
Referenced by javolution.xml.internal.stream.XMLStreamWriterImpl.writeAttributeOrNamespace(), and javolution.xml.internal.stream.XMLStreamWriterImpl.writeNewElement().
Object javolution.xml.internal.stream.XMLStreamWriterImpl.getProperty | ( | String | name | ) | throws IllegalArgumentException |
Gets the value of a feature/property from the underlying implementation.
name | the name of the property. |
IllegalArgumentException | if the property is not supported. |
Implements javolution.xml.stream.XMLStreamWriter.
Definition at line 609 of file XMLStreamWriterImpl.java.
References javolution.xml.internal.stream.XMLStreamWriterImpl._automaticEmptyElements, javolution.xml.internal.stream.XMLStreamWriterImpl._indentation, javolution.xml.internal.stream.XMLStreamWriterImpl._isRepairingNamespaces, javolution.xml.internal.stream.XMLStreamWriterImpl._lineSeparator, javolution.xml.internal.stream.XMLStreamWriterImpl._noEmptyElementTag, javolution.xml.internal.stream.XMLStreamWriterImpl._repairingPrefix, javolution.xml.stream.XMLOutputFactory.AUTOMATIC_EMPTY_ELEMENTS, javolution.xml.stream.XMLOutputFactory.INDENTATION, javolution.xml.stream.XMLOutputFactory.IS_REPAIRING_NAMESPACES, javolution.xml.stream.XMLOutputFactory.LINE_SEPARATOR, javolution.xml.stream.XMLOutputFactory.NO_EMPTY_ELEMENT_TAG, and javolution.xml.stream.XMLOutputFactory.REPAIRING_PREFIX.
|
private |
Definition at line 766 of file XMLStreamWriterImpl.java.
References javolution.xml.internal.stream.XMLStreamWriterImpl._autoNSCount, javolution.xml.internal.stream.XMLStreamWriterImpl._autoPrefix, javolution.xml.internal.stream.XMLStreamWriterImpl._namespaces, javolution.xml.internal.stream.XMLStreamWriterImpl._repairingPrefix, javolution.text.TextBuilder.append(), javolution.text.TextBuilder.clear(), javolution.text.CharArray.equals(), javolution.xml.internal.stream.NamespacesImpl.getPrefix(), and javolution.xml.internal.stream.NamespacesImpl.setPrefix().
Referenced by javolution.xml.internal.stream.XMLStreamWriterImpl.writeAttributeOrNamespace(), and javolution.xml.internal.stream.XMLStreamWriterImpl.writeNewElement().
|
private |
Definition at line 916 of file XMLStreamWriterImpl.java.
References javolution.xml.internal.stream.XMLStreamWriterImpl._isAttributeValue.
Referenced by javolution.xml.internal.stream.XMLStreamWriterImpl.write(), and javolution.xml.internal.stream.XMLStreamWriterImpl.writeDirectEscapedCharacters().
void javolution.xml.internal.stream.XMLStreamWriterImpl.reset | ( | ) |
Definition at line 282 of file XMLStreamWriterImpl.java.
References javolution.xml.internal.stream.XMLStreamWriterImpl._automaticEmptyElements, javolution.xml.internal.stream.XMLStreamWriterImpl._autoNSCount, javolution.xml.internal.stream.XMLStreamWriterImpl._encoding, javolution.xml.internal.stream.XMLStreamWriterImpl._factory, javolution.xml.internal.stream.XMLStreamWriterImpl._indentation, javolution.xml.internal.stream.XMLStreamWriterImpl._indentationLevel, javolution.xml.internal.stream.XMLStreamWriterImpl._index, javolution.xml.internal.stream.XMLStreamWriterImpl._isAttributeValue, javolution.xml.internal.stream.XMLStreamWriterImpl._isElementOpen, javolution.xml.internal.stream.XMLStreamWriterImpl._isEmptyElement, javolution.xml.internal.stream.XMLStreamWriterImpl._isRepairingNamespaces, javolution.xml.internal.stream.XMLStreamWriterImpl._namespaces, javolution.xml.internal.stream.XMLStreamWriterImpl._nesting, javolution.xml.internal.stream.XMLStreamWriterImpl._noEmptyElementTag, javolution.xml.internal.stream.XMLStreamWriterImpl._repairingPrefix, javolution.xml.internal.stream.XMLStreamWriterImpl._utf8StreamWriter, javolution.xml.internal.stream.XMLStreamWriterImpl._writer, javolution.xml.internal.stream.XMLOutputFactoryImpl.recycle(), javolution.xml.internal.stream.NamespacesImpl.reset(), and javolution.io.UTF8StreamWriter.reset().
Referenced by javolution.xml.internal.stream.XMLStreamWriterImpl.close(), and javolution.xml.XMLFormat< T >.OutputElement.reset().
|
private |
Definition at line 783 of file XMLStreamWriterImpl.java.
References javolution.xml.internal.stream.XMLStreamWriterImpl._qNames, and javolution.text.TextBuilder.length().
Referenced by javolution.xml.internal.stream.XMLStreamWriterImpl.writeNewElement().
void javolution.xml.internal.stream.XMLStreamWriterImpl.setAutomaticEmptyElements | ( | boolean | automaticEmptyElements | ) |
Requires this writer to automatically output empty elements when a start element is immediately followed by matching end element (default false
).
automaticEmptyElements | true if start element immediately followed by end element results in an empty element beign written; false otherwise. |
Definition at line 265 of file XMLStreamWriterImpl.java.
References javolution.xml.internal.stream.XMLStreamWriterImpl._automaticEmptyElements.
Referenced by javolution.xml.internal.stream.XMLOutputFactoryImpl.newWriter(), and javolution.xml.XMLFormat< T >.OutputElement.reset().
void javolution.xml.internal.stream.XMLStreamWriterImpl.setDefaultNamespace | ( | CharSequence | uri | ) | throws XMLStreamException |
Binds a URI to the default namespace. This URI is bound in the scope of the current START_ELEMENT / END_ELEMENT pair. If this method is called before a START_ELEMENT has been written the uri is bound in the root scope.
uri | the uri to bind to the default namespace or null . |
XMLStreamException |
Implements javolution.xml.stream.XMLStreamWriter.
Definition at line 604 of file XMLStreamWriterImpl.java.
References javolution.xml.internal.stream.NamespacesImpl._defaultNsPrefix, javolution.xml.internal.stream.XMLStreamWriterImpl._namespaces, and javolution.xml.internal.stream.XMLStreamWriterImpl.setPrefix().
void javolution.xml.internal.stream.XMLStreamWriterImpl.setIndentation | ( | String | indentation | ) |
Specifies the indentation string; non-null indentation forces the writer to write elements into separate lines (default null
).
indentation | the indentation string. |
Definition at line 243 of file XMLStreamWriterImpl.java.
References javolution.xml.internal.stream.XMLStreamWriterImpl._indentation.
Referenced by javolution.xml.internal.stream.XMLOutputFactoryImpl.newWriter().
void javolution.xml.internal.stream.XMLStreamWriterImpl.setLineSeparator | ( | String | lineSeparator | ) |
Specifies the line separator (default "\n"
).
lineSeparator | the line separator string. |
Definition at line 252 of file XMLStreamWriterImpl.java.
References javolution.xml.internal.stream.XMLStreamWriterImpl._lineSeparator.
Referenced by javolution.xml.internal.stream.XMLOutputFactoryImpl.newWriter().
void javolution.xml.internal.stream.XMLStreamWriterImpl.setNoEmptyElementTag | ( | boolean | noEmptyElementTag | ) |
Prevent this writer from using empty element tags (default false
).
noEmptyElementTag | true if empty element tags are replaced by start/end elements with no content; false otherwise. |
Definition at line 277 of file XMLStreamWriterImpl.java.
References javolution.xml.internal.stream.XMLStreamWriterImpl._noEmptyElementTag.
Referenced by javolution.xml.internal.stream.XMLOutputFactoryImpl.newWriter().
void javolution.xml.internal.stream.XMLStreamWriterImpl.setOutput | ( | OutputStream | out | ) | throws XMLStreamException |
Sets the output stream destination for this XML stream writer (UTF-8 encoding).
out | the output source with utf-8 encoding. |
Definition at line 170 of file XMLStreamWriterImpl.java.
References javolution.xml.internal.stream.XMLStreamWriterImpl._encoding, javolution.xml.internal.stream.XMLStreamWriterImpl._utf8StreamWriter, and javolution.io.UTF8StreamWriter.setOutput().
Referenced by javolution.xml.internal.stream.XMLOutputFactoryImpl.createXMLStreamWriter(), and javolution.xml.internal.stream.XMLStreamWriterImpl.setOutput().
void javolution.xml.internal.stream.XMLStreamWriterImpl.setOutput | ( | OutputStream | out, |
String | encoding | ||
) | throws XMLStreamException |
Sets the output stream destination and encoding for this XML stream writer.
out | the output source. |
encoding | the associated encoding. |
XMLStreamException | if the specified encoding is not supported. |
Definition at line 184 of file XMLStreamWriterImpl.java.
References javolution.xml.internal.stream.XMLStreamWriterImpl._encoding, and javolution.xml.internal.stream.XMLStreamWriterImpl.setOutput().
void javolution.xml.internal.stream.XMLStreamWriterImpl.setOutput | ( | Writer | writer | ) | throws XMLStreamException |
Sets the writer output destination for this XML stream writer.
writer | the output destination writer. |
Definition at line 207 of file XMLStreamWriterImpl.java.
References javolution.xml.internal.stream.XMLStreamWriterImpl._writer.
void javolution.xml.internal.stream.XMLStreamWriterImpl.setPrefix | ( | CharSequence | prefix, |
CharSequence | uri | ||
) | throws XMLStreamException |
Sets the prefix the uri is bound to. This prefix is bound in the scope of the current START_ELEMENT / END_ELEMENT pair. If this method is called before a START_ELEMENT has been written the prefix is bound in the root scope.
prefix | the prefix to bind to the uri. |
uri | the uri to bind to the prefix or null |
XMLStreamException |
Implements javolution.xml.stream.XMLStreamWriter.
Definition at line 597 of file XMLStreamWriterImpl.java.
References javolution.xml.internal.stream.XMLStreamWriterImpl._namespaces, javolution.xml.internal.stream.NamespacesImpl._nullNsURI, and javolution.xml.internal.stream.NamespacesImpl.setPrefix().
Referenced by javolution.xml.internal.stream.XMLStreamWriterImpl.setDefaultNamespace().
void javolution.xml.internal.stream.XMLStreamWriterImpl.setRepairingNamespaces | ( | boolean | isRepairingNamespaces | ) |
Requires this writer to create a new prefix when a namespace has none (default false
).
isRepairingNamespaces | true if namespaces are repaired; false otherwise. |
Definition at line 220 of file XMLStreamWriterImpl.java.
References javolution.xml.internal.stream.XMLStreamWriterImpl._isRepairingNamespaces.
Referenced by javolution.xml.internal.stream.XMLOutputFactoryImpl.newWriter(), and javolution.xml.XMLFormat< T >.OutputElement.reset().
void javolution.xml.internal.stream.XMLStreamWriterImpl.setRepairingPrefix | ( | String | repairingPrefix | ) |
Specifies the prefix to be append by a trailing part (a sequence number) in order to make it unique to be usable as a temporary non-colliding prefix when repairing namespaces (default "ns"
).
repairingPrefix | the prefix root. |
Definition at line 232 of file XMLStreamWriterImpl.java.
References javolution.xml.internal.stream.XMLStreamWriterImpl._repairingPrefix.
Referenced by javolution.xml.internal.stream.XMLOutputFactoryImpl.newWriter().
|
private |
Definition at line 922 of file XMLStreamWriterImpl.java.
References javolution.xml.internal.stream.XMLStreamWriterImpl._buffer, javolution.xml.internal.stream.XMLStreamWriterImpl._index, javolution.xml.internal.stream.XMLStreamWriterImpl.BUFFER_LENGTH, and javolution.xml.internal.stream.XMLStreamWriterImpl.flushBuffer().
|
private |
Definition at line 816 of file XMLStreamWriterImpl.java.
References javolution.xml.internal.stream.XMLStreamWriterImpl._buffer, javolution.xml.internal.stream.XMLStreamWriterImpl._index, javolution.xml.internal.stream.XMLStreamWriterImpl.BUFFER_LENGTH, javolution.xml.internal.stream.XMLStreamWriterImpl.flushBuffer(), javolution.xml.internal.stream.XMLStreamWriterImpl.getChars(), javolution.xml.internal.stream.XMLStreamWriterImpl.isEscaped(), and javolution.xml.internal.stream.XMLStreamWriterImpl.writeDirectEscapedCharacters().
Referenced by javolution.xml.internal.stream.XMLStreamWriterImpl.closeOpenTag(), javolution.xml.internal.stream.XMLStreamWriterImpl.writeAttributeOrNamespace(), javolution.xml.internal.stream.XMLStreamWriterImpl.writeEndElement(), javolution.xml.internal.stream.XMLStreamWriterImpl.writeEntityRef(), javolution.xml.internal.stream.XMLStreamWriterImpl.writeEscape(), javolution.xml.internal.stream.XMLStreamWriterImpl.writeNewElement(), javolution.xml.internal.stream.XMLStreamWriterImpl.writeNoEscape(), javolution.xml.internal.stream.XMLStreamWriterImpl.writeProcessingInstruction(), and javolution.xml.internal.stream.XMLStreamWriterImpl.writeStartDocument().
void javolution.xml.internal.stream.XMLStreamWriterImpl.writeAttribute | ( | CharSequence | localName, |
CharSequence | value | ||
) | throws XMLStreamException |
Writes an attribute to the output stream without a prefix.
localName | the local name of the attribute. |
value | the value of the attribute. |
IllegalStateException | if the current state does not allow attribute writing. |
XMLStreamException |
Implements javolution.xml.stream.XMLStreamWriter.
Definition at line 418 of file XMLStreamWriterImpl.java.
References javolution.xml.internal.stream.XMLStreamWriterImpl.writeAttributeOrNamespace().
Referenced by javolution.xml.XMLFormat< T >.OutputElement.setAttribute().
void javolution.xml.internal.stream.XMLStreamWriterImpl.writeAttribute | ( | CharSequence | namespaceURI, |
CharSequence | localName, | ||
CharSequence | value | ||
) | throws XMLStreamException |
Writes an attribute to the output stream.
namespaceURI | the uri of the prefix for this attribute. |
localName | the local name of the attribute. |
value | the value of the attribute. |
IllegalStateException | if the current state does not allow attribute writing. |
XMLStreamException | if the namespace URI has not been bound to a prefix and this writer does not repair namespaces. |
Implements javolution.xml.stream.XMLStreamWriter.
Definition at line 428 of file XMLStreamWriterImpl.java.
References javolution.xml.internal.stream.XMLStreamWriterImpl.writeAttributeOrNamespace().
void javolution.xml.internal.stream.XMLStreamWriterImpl.writeAttribute | ( | CharSequence | prefix, |
CharSequence | namespaceURI, | ||
CharSequence | localName, | ||
CharSequence | value | ||
) | throws XMLStreamException |
Writes an attribute to the output stream.
prefix | the prefix for this attribute. |
namespaceURI | the uri of the prefix for this attribute |
localName | the local name of the attribute. |
value | the value of the attribute. |
IllegalStateException | if the current state does not allow attribute writing. |
XMLStreamException | if the namespace URI has not been bound to a prefix and this writer does not repair namespaces. |
Implements javolution.xml.stream.XMLStreamWriter.
Definition at line 441 of file XMLStreamWriterImpl.java.
References javolution.xml.internal.stream.XMLStreamWriterImpl.writeAttributeOrNamespace().
|
private |
Definition at line 674 of file XMLStreamWriterImpl.java.
References javolution.xml.internal.stream.NamespacesImpl._defaultNamespace, javolution.xml.internal.stream.XMLStreamWriterImpl._isAttributeValue, javolution.xml.internal.stream.XMLStreamWriterImpl._isElementOpen, javolution.xml.internal.stream.XMLStreamWriterImpl._isRepairingNamespaces, javolution.xml.internal.stream.XMLStreamWriterImpl._namespaces, javolution.text.CharArray.equals(), javolution.xml.internal.stream.XMLStreamWriterImpl.getPrefix(), javolution.xml.internal.stream.XMLStreamWriterImpl.getRepairedPrefix(), javolution.xml.internal.stream.XMLStreamWriterImpl.write(), javolution.xml.internal.stream.XMLStreamWriterImpl.writeEscape(), and javolution.xml.internal.stream.XMLStreamWriterImpl.writeNoEscape().
Referenced by javolution.xml.internal.stream.XMLStreamWriterImpl.writeAttribute(), and javolution.xml.internal.stream.XMLStreamWriterImpl.writeNamespaces().
void javolution.xml.internal.stream.XMLStreamWriterImpl.writeCData | ( | CharSequence | data | ) | throws XMLStreamException |
Writes a CData section.
data | the data contained in the CData Section. |
XMLStreamException |
Implements javolution.xml.stream.XMLStreamWriter.
Definition at line 511 of file XMLStreamWriterImpl.java.
References javolution.xml.internal.stream.XMLStreamWriterImpl._isElementOpen, javolution.xml.internal.stream.XMLStreamWriterImpl.closeOpenTag(), and javolution.xml.internal.stream.XMLStreamWriterImpl.writeNoEscape().
void javolution.xml.internal.stream.XMLStreamWriterImpl.writeCharacters | ( | char[] | text, |
int | start, | ||
int | length | ||
) | throws XMLStreamException |
Writes text to the output.
text | the value to write |
start | the starting position in the array. |
length | the number of characters to write. |
XMLStreamException |
Implements javolution.xml.stream.XMLStreamWriter.
Definition at line 583 of file XMLStreamWriterImpl.java.
References javolution.xml.internal.stream.XMLStreamWriterImpl._tmpCharArray, javolution.text.CharArray.setArray(), and javolution.xml.internal.stream.XMLStreamWriterImpl.writeCharacters().
void javolution.xml.internal.stream.XMLStreamWriterImpl.writeCharacters | ( | CharSequence | text | ) | throws XMLStreamException |
Writes text to the output.
text | the value to write or null . |
XMLStreamException |
Implements javolution.xml.stream.XMLStreamWriter.
Definition at line 574 of file XMLStreamWriterImpl.java.
References javolution.xml.internal.stream.XMLStreamWriterImpl._isElementOpen, javolution.xml.internal.stream.XMLStreamWriterImpl.closeOpenTag(), and javolution.xml.internal.stream.XMLStreamWriterImpl.writeEscape().
Referenced by javolution.xml.XMLFormat< T >.OutputElement.addText(), and javolution.xml.internal.stream.XMLStreamWriterImpl.writeCharacters().
void javolution.xml.internal.stream.XMLStreamWriterImpl.writeComment | ( | CharSequence | data | ) | throws XMLStreamException |
Writes an xml comment with the data enclosed.
data | the data contained in the comment or null |
XMLStreamException |
Implements javolution.xml.stream.XMLStreamWriter.
Definition at line 476 of file XMLStreamWriterImpl.java.
References javolution.xml.internal.stream.XMLStreamWriterImpl._isElementOpen, javolution.xml.internal.stream.XMLStreamWriterImpl.closeOpenTag(), and javolution.xml.internal.stream.XMLStreamWriterImpl.writeNoEscape().
void javolution.xml.internal.stream.XMLStreamWriterImpl.writeDefaultNamespace | ( | CharSequence | namespaceURI | ) | throws XMLStreamException |
Writes the default namespace to the stream.
namespaceURI | the uri to bind the default namespace to or null (to map the prefix to "" URI) |
IllegalStateException | if the current state does not allow namespace writing. |
XMLStreamException |
Implements javolution.xml.stream.XMLStreamWriter.
Definition at line 470 of file XMLStreamWriterImpl.java.
References javolution.xml.internal.stream.NamespacesImpl._defaultNsPrefix, javolution.xml.internal.stream.XMLStreamWriterImpl._namespaces, and javolution.xml.internal.stream.XMLStreamWriterImpl.writeNamespace().
|
private |
Definition at line 869 of file XMLStreamWriterImpl.java.
References javolution.xml.internal.stream.XMLStreamWriterImpl._buffer, javolution.xml.internal.stream.XMLStreamWriterImpl._writer, and javolution.xml.internal.stream.XMLStreamWriterImpl.isEscaped().
Referenced by javolution.xml.internal.stream.XMLStreamWriterImpl.write().
void javolution.xml.internal.stream.XMLStreamWriterImpl.writeDTD | ( | CharSequence | dtd | ) | throws XMLStreamException |
Writes a DTD section (representing the entire doctypedecl production from the XML 1.0 specification).
dtd | the DTD to be written. |
XMLStreamException |
Implements javolution.xml.stream.XMLStreamWriter.
Definition at line 522 of file XMLStreamWriterImpl.java.
References javolution.xml.internal.stream.XMLStreamWriterImpl._nesting, and javolution.xml.internal.stream.XMLStreamWriterImpl.writeNoEscape().
void javolution.xml.internal.stream.XMLStreamWriterImpl.writeEmptyElement | ( | CharSequence | localName | ) | throws XMLStreamException |
Writes an empty element tag to the output.
localName | local name of the tag. |
XMLStreamException |
Implements javolution.xml.stream.XMLStreamWriter.
Definition at line 335 of file XMLStreamWriterImpl.java.
References javolution.xml.internal.stream.XMLStreamWriterImpl._isEmptyElement, and javolution.xml.internal.stream.XMLStreamWriterImpl.writeStartElement().
Referenced by javolution.xml.XMLFormat< T >.OutputElement.add().
void javolution.xml.internal.stream.XMLStreamWriterImpl.writeEmptyElement | ( | CharSequence | namespaceURI, |
CharSequence | localName | ||
) | throws XMLStreamException |
Writes an empty element tag to the output.
namespaceURI | the uri to bind the tag to. |
localName | local name of the tag. |
XMLStreamException | if the namespace URI has not been bound to a prefix and this writer does not repair namespaces. |
Implements javolution.xml.stream.XMLStreamWriter.
Definition at line 342 of file XMLStreamWriterImpl.java.
References javolution.xml.internal.stream.XMLStreamWriterImpl._isEmptyElement, and javolution.xml.internal.stream.XMLStreamWriterImpl.writeStartElement().
void javolution.xml.internal.stream.XMLStreamWriterImpl.writeEmptyElement | ( | CharSequence | prefix, |
CharSequence | localName, | ||
CharSequence | namespaceURI | ||
) | throws XMLStreamException |
Writes an empty element tag to the output.
prefix | the prefix of the tag. |
localName | local name of the tag. |
namespaceURI | the uri to bind the tag to. |
XMLStreamException | if the namespace URI has not been bound to a prefix and this writer does not repair namespaces. |
Implements javolution.xml.stream.XMLStreamWriter.
Definition at line 349 of file XMLStreamWriterImpl.java.
References javolution.xml.internal.stream.XMLStreamWriterImpl._isEmptyElement, and javolution.xml.internal.stream.XMLStreamWriterImpl.writeStartElement().
void javolution.xml.internal.stream.XMLStreamWriterImpl.writeEndDocument | ( | ) | throws XMLStreamException |
Closes any start tags and writes corresponding end tags.
XMLStreamException |
Implements javolution.xml.stream.XMLStreamWriter.
Definition at line 387 of file XMLStreamWriterImpl.java.
References javolution.xml.internal.stream.XMLStreamWriterImpl._isElementOpen, javolution.xml.internal.stream.XMLStreamWriterImpl._nesting, javolution.xml.internal.stream.XMLStreamWriterImpl.closeOpenTag(), javolution.xml.internal.stream.XMLStreamWriterImpl.flush(), and javolution.xml.internal.stream.XMLStreamWriterImpl.writeEndElement().
Referenced by javolution.xml.internal.stream.XMLStreamWriterImpl.close().
void javolution.xml.internal.stream.XMLStreamWriterImpl.writeEndElement | ( | ) | throws XMLStreamException |
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.
XMLStreamException |
Implements javolution.xml.stream.XMLStreamWriter.
Definition at line 356 of file XMLStreamWriterImpl.java.
References javolution.xml.internal.stream.XMLStreamWriterImpl._automaticEmptyElements, javolution.xml.internal.stream.XMLStreamWriterImpl._indentation, javolution.xml.internal.stream.XMLStreamWriterImpl._indentationLevel, javolution.xml.internal.stream.XMLStreamWriterImpl._isElementOpen, javolution.xml.internal.stream.XMLStreamWriterImpl._isEmptyElement, javolution.xml.internal.stream.XMLStreamWriterImpl._lineSeparator, javolution.xml.internal.stream.XMLStreamWriterImpl._namespaces, javolution.xml.internal.stream.XMLStreamWriterImpl._nesting, javolution.xml.internal.stream.XMLStreamWriterImpl._qNames, javolution.xml.internal.stream.XMLStreamWriterImpl.closeOpenTag(), javolution.xml.internal.stream.NamespacesImpl.pop(), javolution.xml.internal.stream.XMLStreamWriterImpl.write(), and javolution.xml.internal.stream.XMLStreamWriterImpl.writeNoEscape().
Referenced by javolution.xml.XMLFormat< T >.OutputElement.add(), javolution.xml.internal.stream.XMLStreamWriterImpl.writeEndDocument(), and javolution.xml.XMLFormat< T >.OutputElement.writeReference().
void javolution.xml.internal.stream.XMLStreamWriterImpl.writeEntityRef | ( | CharSequence | name | ) | throws XMLStreamException |
Writes an entity reference
name | the name of the entity. |
XMLStreamException |
Implements javolution.xml.stream.XMLStreamWriter.
Definition at line 532 of file XMLStreamWriterImpl.java.
References javolution.xml.internal.stream.XMLStreamWriterImpl.write(), and javolution.xml.internal.stream.XMLStreamWriterImpl.writeNoEscape().
|
private |
Definition at line 812 of file XMLStreamWriterImpl.java.
References javolution.xml.internal.stream.XMLStreamWriterImpl.write().
Referenced by javolution.xml.internal.stream.XMLStreamWriterImpl.writeAttributeOrNamespace(), and javolution.xml.internal.stream.XMLStreamWriterImpl.writeCharacters().
void javolution.xml.internal.stream.XMLStreamWriterImpl.writeNamespace | ( | CharSequence | prefix, |
CharSequence | namespaceURI | ||
) | throws XMLStreamException |
Writes a namespace to the output stream. If the prefix argument to this method is the empty string, "xmlns", or null
this method will delegate to writeDefaultNamespace.
prefix | the prefix to bind this namespace to or null |
namespaceURI | the uri to bind the prefix. |
IllegalStateException | if the current state does not allow namespace writing. |
XMLStreamException |
Implements javolution.xml.stream.XMLStreamWriter.
Definition at line 456 of file XMLStreamWriterImpl.java.
References javolution.xml.internal.stream.NamespacesImpl._defaultNsPrefix, javolution.xml.internal.stream.XMLStreamWriterImpl._isElementOpen, javolution.xml.internal.stream.XMLStreamWriterImpl._namespaces, javolution.xml.internal.stream.NamespacesImpl._nullNsURI, javolution.xml.internal.stream.NamespacesImpl._xmlns, javolution.text.CharArray.equals(), and javolution.xml.internal.stream.NamespacesImpl.setPrefix().
Referenced by javolution.xml.internal.stream.XMLStreamWriterImpl.writeDefaultNamespace().
|
private |
Definition at line 735 of file XMLStreamWriterImpl.java.
References javolution.xml.internal.stream.XMLStreamWriterImpl._isRepairingNamespaces, javolution.xml.internal.stream.NamespacesImpl._namespaces, javolution.xml.internal.stream.XMLStreamWriterImpl._namespaces, javolution.xml.internal.stream.NamespacesImpl._namespacesCount, javolution.xml.internal.stream.XMLStreamWriterImpl._nesting, javolution.xml.internal.stream.NamespacesImpl._prefixes, javolution.xml.internal.stream.NamespacesImpl._prefixesWritten, javolution.xml.internal.stream.NamespacesImpl._xmlns, javolution.xml.internal.stream.NamespacesImpl._xmlnsURI, javolution.text.CharArray.equals(), javolution.xml.internal.stream.NamespacesImpl.getPrefix(), javolution.text.CharArray.length(), javolution.xml.internal.stream.NamespacesImpl.NBR_PREDEFINED_NAMESPACES, and javolution.xml.internal.stream.XMLStreamWriterImpl.writeAttributeOrNamespace().
Referenced by javolution.xml.internal.stream.XMLStreamWriterImpl.closeOpenTag().
|
private |
Definition at line 629 of file XMLStreamWriterImpl.java.
References javolution.xml.internal.stream.NamespacesImpl._defaultNamespace, javolution.xml.internal.stream.XMLStreamWriterImpl._indentation, javolution.xml.internal.stream.XMLStreamWriterImpl._indentationLevel, javolution.xml.internal.stream.XMLStreamWriterImpl._isElementOpen, javolution.xml.internal.stream.XMLStreamWriterImpl._isRepairingNamespaces, javolution.xml.internal.stream.XMLStreamWriterImpl._lineSeparator, javolution.xml.internal.stream.XMLStreamWriterImpl._namespaces, javolution.xml.internal.stream.XMLStreamWriterImpl._nesting, javolution.xml.internal.stream.XMLStreamWriterImpl._qNames, javolution.text.TextBuilder.append(), javolution.text.TextBuilder.clear(), javolution.xml.internal.stream.XMLStreamWriterImpl.closeOpenTag(), javolution.text.CharArray.equals(), javolution.xml.internal.stream.XMLStreamWriterImpl.getPrefix(), javolution.xml.internal.stream.XMLStreamWriterImpl.getRepairedPrefix(), javolution.text.TextBuilder.length(), javolution.xml.internal.stream.NamespacesImpl.push(), javolution.xml.internal.stream.XMLStreamWriterImpl.resizeElemStack(), javolution.xml.internal.stream.XMLStreamWriterImpl.write(), and javolution.xml.internal.stream.XMLStreamWriterImpl.writeNoEscape().
Referenced by javolution.xml.internal.stream.XMLStreamWriterImpl.writeStartElement().
|
private |
Definition at line 807 of file XMLStreamWriterImpl.java.
References javolution.xml.internal.stream.XMLStreamWriterImpl.write().
|
private |
Definition at line 799 of file XMLStreamWriterImpl.java.
References javolution.xml.internal.stream.XMLStreamWriterImpl.write().
Referenced by javolution.xml.internal.stream.XMLStreamWriterImpl.closeOpenTag(), javolution.xml.internal.stream.XMLStreamWriterImpl.writeAttributeOrNamespace(), javolution.xml.internal.stream.XMLStreamWriterImpl.writeCData(), javolution.xml.internal.stream.XMLStreamWriterImpl.writeComment(), javolution.xml.internal.stream.XMLStreamWriterImpl.writeDTD(), javolution.xml.internal.stream.XMLStreamWriterImpl.writeEndElement(), javolution.xml.internal.stream.XMLStreamWriterImpl.writeEntityRef(), javolution.xml.internal.stream.XMLStreamWriterImpl.writeNewElement(), javolution.xml.internal.stream.XMLStreamWriterImpl.writeProcessingInstruction(), and javolution.xml.internal.stream.XMLStreamWriterImpl.writeStartDocument().
|
private |
Definition at line 803 of file XMLStreamWriterImpl.java.
References javolution.xml.internal.stream.XMLStreamWriterImpl.write().
void javolution.xml.internal.stream.XMLStreamWriterImpl.writeProcessingInstruction | ( | CharSequence | target | ) | throws XMLStreamException |
Writes a processing instruction.
target | the target of the processing instruction. |
XMLStreamException |
Implements javolution.xml.stream.XMLStreamWriter.
Definition at line 487 of file XMLStreamWriterImpl.java.
References javolution.xml.internal.stream.XMLStreamWriterImpl._noChar.
void javolution.xml.internal.stream.XMLStreamWriterImpl.writeProcessingInstruction | ( | CharSequence | target, |
CharSequence | data | ||
) | throws XMLStreamException |
Writes a processing instruction
target | the target of the processing instruction. |
data | the data contained in the processing instruction. |
XMLStreamException |
Implements javolution.xml.stream.XMLStreamWriter.
Definition at line 495 of file XMLStreamWriterImpl.java.
References javolution.xml.internal.stream.XMLStreamWriterImpl._isElementOpen, javolution.xml.internal.stream.XMLStreamWriterImpl.closeOpenTag(), javolution.xml.internal.stream.XMLStreamWriterImpl.write(), and javolution.xml.internal.stream.XMLStreamWriterImpl.writeNoEscape().
void javolution.xml.internal.stream.XMLStreamWriterImpl.writeStartDocument | ( | ) | throws XMLStreamException |
Writes the XML Declaration. Defaults the XML version to 1.0 and the encoding (if any) to the one specified when the instance is created using XMLOutputFactory.
XMLStreamException |
Implements javolution.xml.stream.XMLStreamWriter.
Definition at line 539 of file XMLStreamWriterImpl.java.
Referenced by javolution.xml.internal.stream.XMLStreamWriterImpl.writeStartDocument().
void javolution.xml.internal.stream.XMLStreamWriterImpl.writeStartDocument | ( | CharSequence | encoding, |
CharSequence | version | ||
) | throws XMLStreamException |
Writes the XML Declaration. Note that the encoding parameter does not set the actual encoding of the underlying output. That must be set when the instance when the instance is created using XMLOutputFactory.
encoding | the encoding of the xml declaration or null . |
version | the version of the xml document or null . |
XMLStreamException |
Implements javolution.xml.stream.XMLStreamWriter.
Definition at line 550 of file XMLStreamWriterImpl.java.
References javolution.xml.internal.stream.XMLStreamWriterImpl._encoding, javolution.xml.internal.stream.XMLStreamWriterImpl._nesting, javolution.xml.internal.stream.XMLStreamWriterImpl.write(), and javolution.xml.internal.stream.XMLStreamWriterImpl.writeNoEscape().
void javolution.xml.internal.stream.XMLStreamWriterImpl.writeStartDocument | ( | CharSequence | version | ) | throws XMLStreamException |
Writes the XML Declaration. Default the encoding (if any) to the one specified when the instance is created using XMLOutputFactory.
version | the version of the xml document or null . |
XMLStreamException |
Implements javolution.xml.stream.XMLStreamWriter.
Definition at line 544 of file XMLStreamWriterImpl.java.
References javolution.xml.internal.stream.XMLStreamWriterImpl.writeStartDocument().
void javolution.xml.internal.stream.XMLStreamWriterImpl.writeStartElement | ( | CharSequence | localName | ) | throws XMLStreamException |
Writes a start tag to the output. All writeStartElement methods open a new scope in the internal namespace context. Writing the corresponding EndElement causes the scope to be closed.
localName | local name of the tag. |
XMLStreamException |
Implements javolution.xml.stream.XMLStreamWriter.
Definition at line 305 of file XMLStreamWriterImpl.java.
References javolution.xml.internal.stream.XMLStreamWriterImpl.writeNewElement().
Referenced by javolution.xml.XMLFormat< T >.OutputElement.add(), and javolution.xml.internal.stream.XMLStreamWriterImpl.writeEmptyElement().
void javolution.xml.internal.stream.XMLStreamWriterImpl.writeStartElement | ( | CharSequence | namespaceURI, |
CharSequence | localName | ||
) | throws XMLStreamException |
Writes a start tag to the output.
namespaceURI | the namespaceURI of the prefix to use. |
localName | local name of the tag. |
XMLStreamException | if the namespace URI has not been bound to a prefix and this writer does not repair namespaces. |
Implements javolution.xml.stream.XMLStreamWriter.
Definition at line 313 of file XMLStreamWriterImpl.java.
References javolution.xml.internal.stream.XMLStreamWriterImpl.writeNewElement().
void javolution.xml.internal.stream.XMLStreamWriterImpl.writeStartElement | ( | CharSequence | prefix, |
CharSequence | localName, | ||
CharSequence | namespaceURI | ||
) | throws XMLStreamException |
Writes a start tag to the output.
localName | local name of the tag. |
prefix | the prefix of the tag. |
namespaceURI | the uri to bind the prefix to. |
XMLStreamException | if the namespace URI has not been bound to a prefix and this writer does not repair namespaces. |
Implements javolution.xml.stream.XMLStreamWriter.
Definition at line 323 of file XMLStreamWriterImpl.java.
References javolution.xml.internal.stream.XMLStreamWriterImpl.writeNewElement().
|
private |
Holds automatic empty elements property.
Definition at line 106 of file XMLStreamWriterImpl.java.
Referenced by javolution.xml.internal.stream.XMLStreamWriterImpl.getProperty(), javolution.xml.internal.stream.XMLStreamWriterImpl.reset(), javolution.xml.internal.stream.XMLStreamWriterImpl.setAutomaticEmptyElements(), and javolution.xml.internal.stream.XMLStreamWriterImpl.writeEndElement().
|
private |
Holds counter for automatic namespace generation.
Definition at line 116 of file XMLStreamWriterImpl.java.
Referenced by javolution.xml.internal.stream.XMLStreamWriterImpl.getRepairedPrefix(), and javolution.xml.internal.stream.XMLStreamWriterImpl.reset().
|
private |
Definition at line 780 of file XMLStreamWriterImpl.java.
Referenced by javolution.xml.internal.stream.XMLStreamWriterImpl.getRepairedPrefix().
|
private |
Holds intermediate buffer.
Definition at line 66 of file XMLStreamWriterImpl.java.
Referenced by javolution.xml.internal.stream.XMLStreamWriterImpl.flushBuffer(), javolution.xml.internal.stream.XMLStreamWriterImpl.write(), and javolution.xml.internal.stream.XMLStreamWriterImpl.writeDirectEscapedCharacters().
|
private |
Holds the encoding (null
if N/A).
Definition at line 135 of file XMLStreamWriterImpl.java.
Referenced by javolution.xml.internal.stream.XMLStreamWriterImpl.reset(), javolution.xml.internal.stream.XMLStreamWriterImpl.setOutput(), and javolution.xml.internal.stream.XMLStreamWriterImpl.writeStartDocument().
|
private |
Holds the factory (if any)
Definition at line 145 of file XMLStreamWriterImpl.java.
Referenced by javolution.xml.internal.stream.XMLStreamWriterImpl.reset(), and javolution.xml.internal.stream.XMLStreamWriterImpl.XMLStreamWriterImpl().
|
private |
Holds indentation property.
Definition at line 91 of file XMLStreamWriterImpl.java.
Referenced by javolution.xml.internal.stream.XMLStreamWriterImpl.getProperty(), javolution.xml.internal.stream.XMLStreamWriterImpl.reset(), javolution.xml.internal.stream.XMLStreamWriterImpl.setIndentation(), javolution.xml.internal.stream.XMLStreamWriterImpl.writeEndElement(), and javolution.xml.internal.stream.XMLStreamWriterImpl.writeNewElement().
|
private |
Holds current indentation level.
Definition at line 101 of file XMLStreamWriterImpl.java.
Referenced by javolution.xml.internal.stream.XMLStreamWriterImpl.reset(), javolution.xml.internal.stream.XMLStreamWriterImpl.writeEndElement(), and javolution.xml.internal.stream.XMLStreamWriterImpl.writeNewElement().
|
private |
Holds the buffer current index.
Definition at line 76 of file XMLStreamWriterImpl.java.
Referenced by javolution.xml.internal.stream.XMLStreamWriterImpl.flushBuffer(), javolution.xml.internal.stream.XMLStreamWriterImpl.reset(), and javolution.xml.internal.stream.XMLStreamWriterImpl.write().
|
private |
Indicates if the current object written is an attribute value.
Definition at line 121 of file XMLStreamWriterImpl.java.
Referenced by javolution.xml.internal.stream.XMLStreamWriterImpl.isEscaped(), javolution.xml.internal.stream.XMLStreamWriterImpl.reset(), and javolution.xml.internal.stream.XMLStreamWriterImpl.writeAttributeOrNamespace().
|
private |
Indicates if the current element is open.
Definition at line 56 of file XMLStreamWriterImpl.java.
Referenced by javolution.xml.internal.stream.XMLStreamWriterImpl.closeOpenTag(), javolution.xml.internal.stream.XMLStreamWriterImpl.reset(), javolution.xml.internal.stream.XMLStreamWriterImpl.writeAttributeOrNamespace(), javolution.xml.internal.stream.XMLStreamWriterImpl.writeCData(), javolution.xml.internal.stream.XMLStreamWriterImpl.writeCharacters(), javolution.xml.internal.stream.XMLStreamWriterImpl.writeComment(), javolution.xml.internal.stream.XMLStreamWriterImpl.writeEndDocument(), javolution.xml.internal.stream.XMLStreamWriterImpl.writeEndElement(), javolution.xml.internal.stream.XMLStreamWriterImpl.writeNamespace(), javolution.xml.internal.stream.XMLStreamWriterImpl.writeNewElement(), and javolution.xml.internal.stream.XMLStreamWriterImpl.writeProcessingInstruction().
|
private |
Indicates if the current element is an empty element.
Definition at line 61 of file XMLStreamWriterImpl.java.
Referenced by javolution.xml.internal.stream.XMLStreamWriterImpl.closeOpenTag(), javolution.xml.internal.stream.XMLStreamWriterImpl.reset(), javolution.xml.internal.stream.XMLStreamWriterImpl.writeEmptyElement(), and javolution.xml.internal.stream.XMLStreamWriterImpl.writeEndElement().
|
private |
Holds repairing namespace property.
Definition at line 81 of file XMLStreamWriterImpl.java.
Referenced by javolution.xml.internal.stream.XMLStreamWriterImpl.getProperty(), javolution.xml.internal.stream.XMLStreamWriterImpl.reset(), javolution.xml.internal.stream.XMLStreamWriterImpl.setRepairingNamespaces(), javolution.xml.internal.stream.XMLStreamWriterImpl.writeAttributeOrNamespace(), javolution.xml.internal.stream.XMLStreamWriterImpl.writeNamespaces(), and javolution.xml.internal.stream.XMLStreamWriterImpl.writeNewElement().
|
private |
Holds line separator property.
Definition at line 96 of file XMLStreamWriterImpl.java.
Referenced by javolution.xml.internal.stream.XMLStreamWriterImpl.getProperty(), javolution.xml.internal.stream.XMLStreamWriterImpl.setLineSeparator(), javolution.xml.internal.stream.XMLStreamWriterImpl.writeEndElement(), and javolution.xml.internal.stream.XMLStreamWriterImpl.writeNewElement().
|
private |
Holds the namespace stack.
Definition at line 71 of file XMLStreamWriterImpl.java.
Referenced by javolution.xml.internal.stream.XMLStreamWriterImpl.closeOpenTag(), javolution.xml.internal.stream.XMLStreamWriterImpl.getPrefix(), javolution.xml.internal.stream.XMLStreamWriterImpl.getRepairedPrefix(), javolution.xml.internal.stream.XMLStreamWriterImpl.reset(), javolution.xml.internal.stream.XMLStreamWriterImpl.setDefaultNamespace(), javolution.xml.internal.stream.XMLStreamWriterImpl.setPrefix(), javolution.xml.internal.stream.XMLStreamWriterImpl.writeAttributeOrNamespace(), javolution.xml.internal.stream.XMLStreamWriterImpl.writeDefaultNamespace(), javolution.xml.internal.stream.XMLStreamWriterImpl.writeEndElement(), javolution.xml.internal.stream.XMLStreamWriterImpl.writeNamespace(), javolution.xml.internal.stream.XMLStreamWriterImpl.writeNamespaces(), and javolution.xml.internal.stream.XMLStreamWriterImpl.writeNewElement().
|
private |
Holds the current nesting level.
Definition at line 46 of file XMLStreamWriterImpl.java.
Referenced by javolution.xml.internal.stream.XMLStreamWriterImpl.close(), javolution.xml.internal.stream.XMLStreamWriterImpl.closeOpenTag(), javolution.xml.internal.stream.XMLStreamWriterImpl.reset(), javolution.xml.internal.stream.XMLStreamWriterImpl.writeDTD(), javolution.xml.internal.stream.XMLStreamWriterImpl.writeEndDocument(), javolution.xml.internal.stream.XMLStreamWriterImpl.writeEndElement(), javolution.xml.internal.stream.XMLStreamWriterImpl.writeNamespaces(), javolution.xml.internal.stream.XMLStreamWriterImpl.writeNewElement(), and javolution.xml.internal.stream.XMLStreamWriterImpl.writeStartDocument().
|
private |
Definition at line 492 of file XMLStreamWriterImpl.java.
Referenced by javolution.xml.internal.stream.XMLStreamWriterImpl.writeProcessingInstruction().
|
private |
Holds no empty element tag property.
Definition at line 111 of file XMLStreamWriterImpl.java.
Referenced by javolution.xml.internal.stream.XMLStreamWriterImpl.closeOpenTag(), javolution.xml.internal.stream.XMLStreamWriterImpl.getProperty(), javolution.xml.internal.stream.XMLStreamWriterImpl.reset(), and javolution.xml.internal.stream.XMLStreamWriterImpl.setNoEmptyElementTag().
|
private |
Holds the element qualified name (indexed per nesting level)
Definition at line 51 of file XMLStreamWriterImpl.java.
Referenced by javolution.xml.internal.stream.XMLStreamWriterImpl.closeOpenTag(), javolution.xml.internal.stream.XMLStreamWriterImpl.resizeElemStack(), javolution.xml.internal.stream.XMLStreamWriterImpl.writeEndElement(), javolution.xml.internal.stream.XMLStreamWriterImpl.writeNewElement(), and javolution.xml.internal.stream.XMLStreamWriterImpl.XMLStreamWriterImpl().
|
private |
Holds repairing prefix property.
Definition at line 86 of file XMLStreamWriterImpl.java.
Referenced by javolution.xml.internal.stream.XMLStreamWriterImpl.getProperty(), javolution.xml.internal.stream.XMLStreamWriterImpl.getRepairedPrefix(), javolution.xml.internal.stream.XMLStreamWriterImpl.reset(), and javolution.xml.internal.stream.XMLStreamWriterImpl.setRepairingPrefix().
|
private |
Definition at line 589 of file XMLStreamWriterImpl.java.
Referenced by javolution.xml.internal.stream.XMLStreamWriterImpl.writeCharacters().
|
private |
Holds the default writer for output streams.
Definition at line 140 of file XMLStreamWriterImpl.java.
Referenced by javolution.xml.internal.stream.XMLStreamWriterImpl.reset(), and javolution.xml.internal.stream.XMLStreamWriterImpl.setOutput().
|
private |
Holds the writer destination (null
when unused).
Definition at line 130 of file XMLStreamWriterImpl.java.
Referenced by javolution.xml.internal.stream.XMLStreamWriterImpl.close(), javolution.xml.internal.stream.XMLStreamWriterImpl.flush(), javolution.xml.internal.stream.XMLStreamWriterImpl.flushBuffer(), javolution.xml.internal.stream.XMLStreamWriterImpl.reset(), javolution.xml.internal.stream.XMLStreamWriterImpl.setOutput(), and javolution.xml.internal.stream.XMLStreamWriterImpl.writeDirectEscapedCharacters().
|
staticprivate |
Holds the length of intermediate buffer.
Definition at line 41 of file XMLStreamWriterImpl.java.
Referenced by javolution.xml.internal.stream.XMLStreamWriterImpl.write().