| Modifier and Type | Field and Description |
|---|---|
| protected ValueEncoderFactory | mValueEncoderFactory
When outputting using Typed Access API, we will need encoders. |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| private String | |
| protected final ValueEncoderFactory | |
| public void | writeBinary(byte[]
The array from which to write the bytes. value, int The index in the array from which writing starts. from, int The number of bytes to write. length)Implements org. Write binary content as base64 encoded characters to the output. |
| public void | writeBinary(Base64Variant v, byte[] value, int from, int length)
Implements org.
|
| public void | writeBinaryAttribute(String
The attribute's prefix. prefix, String The attribute's URI. nsURI, String The attribute's local name. localName, byte[] The array from which to write the bytes. value)Implements org. Write a byte array attribute. |
| public void | writeBinaryAttribute(Base64Variant v, String prefix, String nsURI, String localName, byte[] value)
Implements org.
|
| public void | writeBoolean(boolean
The boolean value to write. value)Implements org. Write a boolean value to the output as textual element content. |
| public void | writeBooleanAttribute(String
The attribute's prefix. Null or "" if no prefix is to be used prefix, String The attribute's URI (can be either null or empty String for "no namespace") nsURI, String The attribute's local name localName, boolean The boolean value to write. value)Implements org. Write a boolean value to the output as attribute value. |
| public void | writeDecimal(BigDecimal value)
Implements org. Write a decimal value to the output as textual element content. |
| public void | writeDecimalAttribute(String prefix, String nsURI, String localName, BigDecimal value)
Implements org.
|
| public void | writeDouble(double value)
Implements org. Write a double value to the output as textual element content. |
| public void | writeDoubleArray(double[] value, int from, int length)
Implements org.
|
| public void | writeDoubleArrayAttribute(String prefix, String nsURI, String localName, double[] value)
Implements org.
|
| public void | writeDoubleAttribute(String prefix, String nsURI, String localName, double value)
Implements org.
|
| public void | writeFloat(float value)
Implements org. Write a float value to the output as textual element content. |
| public void | writeFloatArray(float[] value, int from, int length)
Implements org.
|
| public void | writeFloatArrayAttribute(String prefix, String nsURI, String localName, float[] value)
Implements org.
|
| public void | writeFloatAttribute(String prefix, String nsURI, String localName, float value)
Implements org.
|
| public void | writeInt(int value)
Implements org. Write an int value to the output as textual element content. |
| public final void | writeIntArray(int[]
The array from which to write the ints. value, int The index in the array from which writing starts. from, int The number of ints to write. length)Implements org. Write int array to the output. |
| public void | writeIntArrayAttribute(String
The attribute's prefix. prefix, String The attribute's URI. nsURI, String The attribute's local name. localName, int[] The array from which to write the ints. value)Implements org. Write int array attribute. |
| public void | writeIntAttribute(String
The attribute's prefix. Null or "" if no prefix is to be used prefix, String The attribute's URI (can be either null or empty String for "no namespace") nsURI, String The attribute's local name localName, int The integer value to write. value)Implements org. Write an integer value to the output as attribute value. |
| public void | writeInteger(BigInteger value)
Implements org.
|
| public void | writeIntegerAttribute(String prefix, String nsURI, String localName, BigInteger value)
Implements org.
|
| public void | writeLong(long value)
Implements org. Write a long value to the output as textual element content. |
| public void | writeLongArray(long[] value, int from, int length)
Implements org.
|
| public void | writeLongArrayAttribute(String prefix, String nsURI, String localName, long[] value)
Implements org.
|
| public void | writeLongAttribute(String
The attribute's prefix. Null or "" if no prefix is to be used prefix, String The attribute's URI (can be either null or empty String for "no namespace") nsURI, String The attribute's local name localName, long The long value to write. value)Implements org. Write an long value to the output as attribute value. |
| public void | |
| public void | writeQNameAttribute(String prefix, String nsURI, String localName, QName name)
Implements org.
|
| protected abstract void | writeTypedAttribute(String prefix, String nsURI, String localName, AsciiValueEncoder enc)
Method that will write attribute with value that is known not to require additional escaping. |
| protected final void |
| mValueEncoderFactory | back to summary |
|---|---|
| protected ValueEncoderFactory mValueEncoderFactory When outputting using Typed Access API, we will need encoders. If so, they will created by lazily-constructed factory | |
| TypedStreamWriter | back to summary |
|---|---|
| protected TypedStreamWriter(XmlWriter xw, String enc, WriterConfig cfg) | |
| serializeQName | back to summary |
|---|---|
| private String serializeQName(QName name) throws XMLStreamException | |
| valueEncoderFactory | back to summary |
|---|---|
| protected final ValueEncoderFactory valueEncoderFactory() | |
| writeBinary | back to summary |
|---|---|
| public void writeBinary(byte[] value, int from, int length) throws XMLStreamException Implements org. Doc from org. Write binary content as base64 encoded characters to the output. The lexical representation of a byte array is defined by the XML Schema base64Binary data type. This method can be called multiple times to write the array in chunks; but if so, callers should write output in chunks divisible by 3 (natural atomic unit of base64 output, which avoids padding) to maximize interoperability. Note base64 variant defaults to
| |
| writeBinary | back to summary |
|---|---|
| public void writeBinary(Base64Variant v, byte[] value, int from, int length) throws XMLStreamException Implements org.
| |
| writeBinaryAttribute | back to summary |
|---|---|
| public void writeBinaryAttribute(String prefix, String nsURI, String localName, byte[] value) throws XMLStreamException Implements org. Doc from org. Write a byte array attribute. The lexical representation of a byte array is defined by the XML Schema base64Binary data type. Note base64 variant defaults to | |
| writeBinaryAttribute | back to summary |
|---|---|
| public void writeBinaryAttribute(Base64Variant v, String prefix, String nsURI, String localName, byte[] value) throws XMLStreamException Implements org.
| |
| writeBoolean | back to summary |
|---|---|
| public void writeBoolean(boolean value) throws XMLStreamException Implements org. Doc from org. Write a boolean value to the output as textual element content. The lexical representation of content is defined by the XML Schema boolean data type.
| |
| writeBooleanAttribute | back to summary |
|---|---|
| public void writeBooleanAttribute(String prefix, String nsURI, String localName, boolean value) throws XMLStreamException Implements org. Doc from org. Write a boolean value to the output as attribute value. The lexical representation of content is defined by the XML Schema boolean data type. | |
| writeDecimal | back to summary |
|---|---|
| public void writeDecimal(BigDecimal value) throws XMLStreamException Implements org. Doc from org. Write a decimal value to the output as textual element content. The lexical representation of content is defined by the XML Schema decimal data type.
| |
| writeDecimalAttribute | back to summary |
|---|---|
| public void writeDecimalAttribute(String prefix, String nsURI, String localName, BigDecimal value) throws XMLStreamException Implements org.
| |
| writeDouble | back to summary |
|---|---|
| public void writeDouble(double value) throws XMLStreamException Implements org. Doc from org. Write a double value to the output as textual element content. The lexical representation of content is defined by the XML Schema double data type.
| |
| writeDoubleArray | back to summary |
|---|---|
| public void writeDoubleArray(double[] value, int from, int length) throws XMLStreamException Implements org.
| |
| writeDoubleArrayAttribute | back to summary |
|---|---|
| public void writeDoubleArrayAttribute(String prefix, String nsURI, String localName, double[] value) throws XMLStreamException Implements org.
| |
| writeDoubleAttribute | back to summary |
|---|---|
| public void writeDoubleAttribute(String prefix, String nsURI, String localName, double value) throws XMLStreamException Implements org.
| |
| writeFloat | back to summary |
|---|---|
| public void writeFloat(float value) throws XMLStreamException Implements org. Doc from org. Write a float value to the output as textual element content. The lexical representation of content is defined by the XML Schema float data type.
| |
| writeFloatArray | back to summary |
|---|---|
| public void writeFloatArray(float[] value, int from, int length) throws XMLStreamException Implements org.
| |
| writeFloatArrayAttribute | back to summary |
|---|---|
| public void writeFloatArrayAttribute(String prefix, String nsURI, String localName, float[] value) throws XMLStreamException Implements org.
| |
| writeFloatAttribute | back to summary |
|---|---|
| public void writeFloatAttribute(String prefix, String nsURI, String localName, float value) throws XMLStreamException Implements org.
| |
| writeInt | back to summary |
|---|---|
| public void writeInt(int value) throws XMLStreamException Implements org. Doc from org. Write an int value to the output as textual element content. The lexical representation of content is defined by the XML Schema integer data type.
| |
| writeIntArray | back to summary |
|---|---|
| public final void writeIntArray(int[] value, int from, int length) throws XMLStreamException Implements org. Doc from org. Write int array to the output. The lexical representation of a int array is defined by the following XML schema type:
<xs:simpleType name="intArray">
<xs:list itemType="xs:int"/>
</xs:simpleType>
whose lexical space is a list of space-separated ints.
This method can be called multiple times to write the
array in chunks.
| |
| writeIntArrayAttribute | back to summary |
|---|---|
| public void writeIntArrayAttribute(String prefix, String nsURI, String localName, int[] value) throws XMLStreamException Implements org. Doc from org. Write int array attribute. The lexical representation of a int array is defined by the following XML schema type:
<xs:simpleType name="intArray">
<xs:list itemType="xs:int"/>
</xs:simpleType>
whose lexical space is a list of space-separated ints.
| |
| writeIntAttribute | back to summary |
|---|---|
| public void writeIntAttribute(String prefix, String nsURI, String localName, int value) throws XMLStreamException Implements org. Doc from org. Write an integer value to the output as attribute value. The lexical representation of content is defined by the XML Schema integer data type. | |
| writeInteger | back to summary |
|---|---|
| public void writeInteger(BigInteger value) throws XMLStreamException Implements org.
| |
| writeIntegerAttribute | back to summary |
|---|---|
| public void writeIntegerAttribute(String prefix, String nsURI, String localName, BigInteger value) throws XMLStreamException Implements org.
| |
| writeLong | back to summary |
|---|---|
| public void writeLong(long value) throws XMLStreamException Implements org. Doc from org. Write a long value to the output as textual element content. The lexical representation of content is defined by the XML Schema long data type.
| |
| writeLongArray | back to summary |
|---|---|
| public void writeLongArray(long[] value, int from, int length) throws XMLStreamException Implements org.
| |
| writeLongArrayAttribute | back to summary |
|---|---|
| public void writeLongArrayAttribute(String prefix, String nsURI, String localName, long[] value) throws XMLStreamException Implements org.
| |
| writeLongAttribute | back to summary |
|---|---|
| public void writeLongAttribute(String prefix, String nsURI, String localName, long value) throws XMLStreamException Implements org. Doc from org. Write an long value to the output as attribute value. The lexical representation of content is defined by the XML Schema long data type. | |
| writeQName | back to summary |
|---|---|
| public void writeQName(QName name) throws XMLStreamException Implements org.
| |
| writeQNameAttribute | back to summary |
|---|---|
| public void writeQNameAttribute(String prefix, String nsURI, String localName, QName name) throws XMLStreamException Implements org.
| |
| writeTypedAttribute | back to summary |
|---|---|
| protected abstract void writeTypedAttribute(String prefix, String nsURI, String localName, AsciiValueEncoder enc) throws XMLStreamException Method that will write attribute with value that is known not to require additional escaping. | |
| writeTypedElement | back to summary |
|---|---|
| protected final void writeTypedElement(AsciiValueEncoder enc) throws XMLStreamException | |