Javolution 6.0.0 java
|
Public Member Functions | |
XMLStreamWriterImpl | createXMLStreamWriter (OutputStream stream) throws XMLStreamException |
XMLStreamWriterImpl | createXMLStreamWriter (OutputStream stream, String encoding) throws XMLStreamException |
XMLStreamWriterImpl | createXMLStreamWriter (Writer writer) throws XMLStreamException |
Object | getProperty (String name) throws IllegalArgumentException |
boolean | isPropertySupported (String name) |
void | setProperty (String name, Object value) throws IllegalArgumentException |
XMLOutputFactory | clone () |
Static Public Attributes | |
static final String | IS_REPAIRING_NAMESPACES = "javolution.xml.stream.isRepairingNamespaces" |
static final String | REPAIRING_PREFIX = "javolution.xml.stream.repairingPrefix" |
static final String | INDENTATION = "javolution.xml.stream.indentation" |
static final String | LINE_SEPARATOR = "javolution.xml.stream.lineSeparator" |
static final String | AUTOMATIC_EMPTY_ELEMENTS = "javolution.xml.stream.automaticEmptyElements" |
static final String | NO_EMPTY_ELEMENT_TAG = "javolution.xml.stream.noEmptyElementTag" |
Package Functions | |
void | recycle (XMLStreamWriterImpl xmlWriter) |
Private Member Functions | |
XMLStreamWriterImpl | newWriter () |
Private Attributes | |
Boolean | _automaticEmptyElements = Boolean.FALSE |
String | _indentation |
Boolean | _isRepairingNamespaces = Boolean.FALSE |
String | _lineSeparator = "\n" |
Boolean | _noEmptyElementTag = Boolean.FALSE |
String | _repairingPrefix = "ns" |
FastTable< XMLStreamWriterImpl > | _recycled |
This default XML Output factory implementation.
Definition at line 21 of file XMLOutputFactoryImpl.java.
XMLOutputFactory javolution.xml.internal.stream.XMLOutputFactoryImpl.clone | ( | ) |
Returns a clone of this factory which can be independently configured.
Implements javolution.xml.stream.XMLOutputFactory.
Definition at line 142 of file XMLOutputFactoryImpl.java.
References javolution.xml.stream.XMLOutputFactory.clone(), and javolution.util.FastTable< E >.shared().
XMLStreamWriterImpl javolution.xml.internal.stream.XMLOutputFactoryImpl.createXMLStreamWriter | ( | OutputStream | stream | ) | throws XMLStreamException |
Returns a XML stream writer to the specified output stream (UTF-8 encoding).
stream | the stream to write to. |
XMLStreamException |
Implements javolution.xml.stream.XMLOutputFactory.
Definition at line 45 of file XMLOutputFactoryImpl.java.
References javolution.xml.internal.stream.XMLOutputFactoryImpl.newWriter(), and javolution.xml.internal.stream.XMLStreamWriterImpl.setOutput().
Referenced by javolution.xml.internal.stream.XMLOutputFactoryImpl.createXMLStreamWriter().
XMLStreamWriterImpl javolution.xml.internal.stream.XMLOutputFactoryImpl.createXMLStreamWriter | ( | OutputStream | stream, |
String | encoding | ||
) | throws XMLStreamException |
Returns a XML stream writer to the specified output stream using the specified encoding.
stream | the stream to write to. |
encoding | the encoding to use. |
XMLStreamException |
Implements javolution.xml.stream.XMLOutputFactory.
Definition at line 53 of file XMLOutputFactoryImpl.java.
References javolution.xml.internal.stream.XMLOutputFactoryImpl.createXMLStreamWriter(), javolution.xml.internal.stream.XMLOutputFactoryImpl.newWriter(), and javolution.xml.internal.stream.XMLStreamWriterImpl.setOutput().
XMLStreamWriterImpl javolution.xml.internal.stream.XMLOutputFactoryImpl.createXMLStreamWriter | ( | Writer | writer | ) | throws XMLStreamException |
Returns a XML stream writer to the specified i/o writer.
writer | the writer to write to. |
XMLStreamException |
Implements javolution.xml.stream.XMLOutputFactory.
Definition at line 64 of file XMLOutputFactoryImpl.java.
References javolution.xml.internal.stream.XMLOutputFactoryImpl.newWriter(), and javolution.xml.internal.stream.XMLStreamWriterImpl.setOutput().
Object javolution.xml.internal.stream.XMLOutputFactoryImpl.getProperty | ( | String | name | ) | throws IllegalArgumentException |
Gets a feature/property on the underlying implementation.
name | the name of the property |
IllegalArgumentException | if the property is not supported. |
Implements javolution.xml.stream.XMLOutputFactory.
Definition at line 72 of file XMLOutputFactoryImpl.java.
References javolution.xml.internal.stream.XMLOutputFactoryImpl._automaticEmptyElements, javolution.xml.internal.stream.XMLOutputFactoryImpl._indentation, javolution.xml.internal.stream.XMLOutputFactoryImpl._isRepairingNamespaces, javolution.xml.internal.stream.XMLOutputFactoryImpl._lineSeparator, javolution.xml.internal.stream.XMLOutputFactoryImpl._noEmptyElementTag, javolution.xml.internal.stream.XMLOutputFactoryImpl._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.
boolean javolution.xml.internal.stream.XMLOutputFactoryImpl.isPropertySupported | ( | String | name | ) |
Queries the set of properties that this factory supports.
name | the name of the property (may not be null). |
true
if the property is supported; false
otherwise. Implements javolution.xml.stream.XMLOutputFactory.
Definition at line 92 of file XMLOutputFactoryImpl.java.
References 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 128 of file XMLOutputFactoryImpl.java.
References javolution.xml.internal.stream.XMLOutputFactoryImpl._automaticEmptyElements, javolution.xml.internal.stream.XMLOutputFactoryImpl._indentation, javolution.xml.internal.stream.XMLOutputFactoryImpl._isRepairingNamespaces, javolution.xml.internal.stream.XMLOutputFactoryImpl._lineSeparator, javolution.xml.internal.stream.XMLOutputFactoryImpl._noEmptyElementTag, javolution.xml.internal.stream.XMLOutputFactoryImpl._recycled, javolution.xml.internal.stream.XMLOutputFactoryImpl._repairingPrefix, javolution.xml.internal.stream.XMLStreamWriterImpl.setAutomaticEmptyElements(), javolution.xml.internal.stream.XMLStreamWriterImpl.setIndentation(), javolution.xml.internal.stream.XMLStreamWriterImpl.setLineSeparator(), javolution.xml.internal.stream.XMLStreamWriterImpl.setNoEmptyElementTag(), javolution.xml.internal.stream.XMLStreamWriterImpl.setRepairingNamespaces(), and javolution.xml.internal.stream.XMLStreamWriterImpl.setRepairingPrefix().
Referenced by javolution.xml.internal.stream.XMLOutputFactoryImpl.createXMLStreamWriter().
|
package |
Recycles the specified writer instance.
Definition at line 124 of file XMLOutputFactoryImpl.java.
References javolution.xml.internal.stream.XMLOutputFactoryImpl._recycled.
Referenced by javolution.xml.internal.stream.XMLStreamWriterImpl.reset().
void javolution.xml.internal.stream.XMLOutputFactoryImpl.setProperty | ( | String | name, |
Object | value | ||
) | throws IllegalArgumentException |
Allows the user to set specific features/properties on the underlying implementation.
name | the name of the property. |
value | the value of the property. |
IllegalArgumentException | if the property is not supported. |
Implements javolution.xml.stream.XMLOutputFactory.
Definition at line 101 of file XMLOutputFactoryImpl.java.
References javolution.xml.internal.stream.XMLOutputFactoryImpl._automaticEmptyElements, javolution.xml.internal.stream.XMLOutputFactoryImpl._indentation, javolution.xml.internal.stream.XMLOutputFactoryImpl._isRepairingNamespaces, javolution.xml.internal.stream.XMLOutputFactoryImpl._lineSeparator, javolution.xml.internal.stream.XMLOutputFactoryImpl._noEmptyElementTag, javolution.xml.internal.stream.XMLOutputFactoryImpl._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 |
|
private |
|
private |
|
private |
|
private |
|
private |
Definition at line 41 of file XMLOutputFactoryImpl.java.
Referenced by javolution.xml.internal.stream.XMLOutputFactoryImpl.newWriter(), and javolution.xml.internal.stream.XMLOutputFactoryImpl.recycle().
|
private |
|
staticinherited |
Property indicating if the stream writers are allowed to automatically output empty elements when a start element is immediately followed by matching end element (type: Boolean
, default: FALSE
).
Definition at line 92 of file XMLOutputFactory.java.
Referenced by javolution.xml.internal.stream.XMLOutputFactoryImpl.getProperty(), javolution.xml.internal.stream.XMLStreamWriterImpl.getProperty(), javolution.xml.internal.stream.XMLOutputFactoryImpl.isPropertySupported(), and javolution.xml.internal.stream.XMLOutputFactoryImpl.setProperty().
|
staticinherited |
Property used to specify an indentation string; non-null indentation forces the writer to write elements into separate lines (type: String
, default: null
).
Definition at line 78 of file XMLOutputFactory.java.
Referenced by javolution.xml.internal.stream.XMLOutputFactoryImpl.getProperty(), javolution.xml.internal.stream.XMLStreamWriterImpl.getProperty(), javolution.xml.internal.stream.XMLOutputFactoryImpl.isPropertySupported(), and javolution.xml.internal.stream.XMLOutputFactoryImpl.setProperty().
|
staticinherited |
Property used to set prefix defaulting on the output side (type: Boolean
, default: FALSE
).
Definition at line 63 of file XMLOutputFactory.java.
Referenced by javolution.xml.internal.stream.XMLOutputFactoryImpl.getProperty(), javolution.xml.internal.stream.XMLStreamWriterImpl.getProperty(), javolution.xml.internal.stream.XMLOutputFactoryImpl.isPropertySupported(), and javolution.xml.internal.stream.XMLOutputFactoryImpl.setProperty().
|
staticinherited |
Property used to specify the new line characters (type: String
, default: "\n"
).
Definition at line 84 of file XMLOutputFactory.java.
Referenced by javolution.xml.internal.stream.XMLOutputFactoryImpl.getProperty(), javolution.xml.internal.stream.XMLStreamWriterImpl.getProperty(), javolution.xml.internal.stream.XMLOutputFactoryImpl.isPropertySupported(), and javolution.xml.internal.stream.XMLOutputFactoryImpl.setProperty().
|
staticinherited |
Property indicating if the stream writers are not allowed to use empty element tags (type: Boolean
, default: FALSE
). When set, this property forces the use of start/end element tag (e.g. i.e. "<empty />" replaced by "<empty></empty>"), This property takes precedence over AUTOMATIC_EMPTY_ELEMENTS.
Definition at line 102 of file XMLOutputFactory.java.
Referenced by javolution.xml.internal.stream.XMLOutputFactoryImpl.getProperty(), javolution.xml.internal.stream.XMLStreamWriterImpl.getProperty(), javolution.xml.internal.stream.XMLOutputFactoryImpl.isPropertySupported(), and javolution.xml.internal.stream.XMLOutputFactoryImpl.setProperty().
|
staticinherited |
Property used to specify the prefix to be appended 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 (type: String
, default: "ns"
).
Definition at line 71 of file XMLOutputFactory.java.
Referenced by javolution.xml.internal.stream.XMLOutputFactoryImpl.getProperty(), javolution.xml.internal.stream.XMLStreamWriterImpl.getProperty(), javolution.xml.internal.stream.XMLOutputFactoryImpl.isPropertySupported(), and javolution.xml.internal.stream.XMLOutputFactoryImpl.setProperty().