XmlOutput that generates canonical XML.
| Modifier and Type | Class and Description |
|---|---|
| pack-priv class | |
| pack-priv class |
| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private final boolean | namedAttributesAreOrdered
True if |
| private int[] | nsBuf
Used to sort namespace declarations. |
| private final FinalArrayList | otherAttributes
Hosts other attributes whose name are not statically known (AKA attribute wildcard.) As long as this map is empty, there's no need for sorting. |
| private C14nXmlOutput. | staticAttributes
Hosts statically known attributes. |
| Access | Constructor and Description |
|---|---|
| public | C14nXmlOutput(OutputStream out, Encoded[] localNames, boolean namedAttributesAreOrdered, CharacterEscapeHandler escapeHandler)
|
| Modifier and Type | Method and Description |
|---|---|
| public void | attribute(Name name, String value)
Overrides org. Implements org.
|
| public void | attribute(int prefix, String localName, String value)
Overrides org. Implements org.
|
| public void | |
| protected void | writeNsDecls(int base)
Overrides org. Write namespace declarations after sorting them. |
| len | back to summary |
|---|---|
| private int len | |
| namedAttributesAreOrdered | back to summary |
|---|---|
| private final boolean namedAttributesAreOrdered True if | |
| nsBuf | back to summary |
|---|---|
| private int[] nsBuf Used to sort namespace declarations. Reused. | |
| otherAttributes | back to summary |
|---|---|
| private final FinalArrayList<C14nXmlOutput. Hosts other attributes whose name are not statically known (AKA attribute wildcard.) As long as this map is empty, there's no need for sorting. | |
| staticAttributes | back to summary |
|---|---|
| private C14nXmlOutput. Hosts statically known attributes.
| |
| C14nXmlOutput | back to summary |
|---|---|
| public C14nXmlOutput(OutputStream out, Encoded[] localNames, boolean namedAttributesAreOrdered, CharacterEscapeHandler escapeHandler) | |
| attribute | back to summary |
|---|---|
| public void attribute(Name name, String value) throws IOException Overrides org. Implements org.
| |
| attribute | back to summary |
|---|---|
| public void attribute(int prefix, String localName, String value) throws IOException Overrides org. Implements org.
| |
| endStartTag | back to summary |
|---|---|
| public void endStartTag() throws IOException Overrides org. Implements org.
| |
| writeNsDecls | back to summary |
|---|---|
| protected void writeNsDecls(int base) throws IOException Overrides org. Write namespace declarations after sorting them.
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final String | |
| pack-priv final int | |
| pack-priv final String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public int | compareTo(C14nXmlOutput.
Implements java. Compares this object with the specified object for order. |
| private String |
| localName | back to summary |
|---|---|
| pack-priv final String localName | |
| prefix | back to summary |
|---|---|
| pack-priv final int prefix | |
| value | back to summary |
|---|---|
| pack-priv final String value | |
| DynamicAttribute | back to summary |
|---|---|
| public DynamicAttribute(int prefix, String localName, String value) | |
| compareTo | back to summary |
|---|---|
| public int compareTo(C14nXmlOutput. Implements java. Doc from java. Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object. The implementor must ensure The implementor must also ensure that the relation is transitive:
Finally, the implementor must ensure that
| |
| getURI | back to summary |
|---|---|
| private String getURI() | |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public int | compareTo(C14nXmlOutput.
Implements java. Compares this object with the specified object for order. |
| public void | |
| pack-priv C14nXmlOutput. | |
| pack-priv void |
| StaticAttribute | back to summary |
|---|---|
| pack-priv StaticAttribute() | |
| compareTo | back to summary |
|---|---|
| public int compareTo(C14nXmlOutput. Implements java. Doc from java. Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object. The implementor must ensure The implementor must also ensure that the relation is transitive:
Finally, the implementor must ensure that
| |
| set | back to summary |
|---|---|
| public void set(Name name, String value) | |
| toDynamicAttribute | back to summary |
|---|---|
| pack-priv C14nXmlOutput. | |
| write | back to summary |
|---|---|
| pack-priv void write() throws IOException | |