XMLOutputter and
SAXOutputter to manage namespaces in a JDOM Document
during output.
| Modifier and Type | Field and Description |
|---|---|
| private static final String | |
| private Stack | prefixes
The prefixes available |
| private Stack | uris
The URIs available |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| public String | |
| public void | |
| public int | |
| public String | toString()
Overrides java. to
the "oldest," all to System.out.
|
| CVS_ID | back to summary |
|---|---|
| private static final String CVS_ID | |
| prefixes | back to summary |
|---|---|
| private Stack<E> prefixes The prefixes available | |
| uris | back to summary |
|---|---|
| private Stack<E> uris The URIs available | |
| NamespaceStack | back to summary |
|---|---|
| pack-priv NamespaceStack() This creates the needed storage. | |
| getURI | back to summary |
|---|---|
| public String getURI(String prefix) Given a prefix, this will return the namespace URI most rencently (topmost) associated with that prefix. | |
| pop | back to summary |
|---|---|
| public String pop() This will remove the topmost (most recently added)
| |
| push | back to summary |
|---|---|
| public void push(Namespace ns) This will add a new
| |
| size | back to summary |
|---|---|
| public int size() This returns the number of available namespaces.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. This will print out the size and current stack, from the
most recently added
| |