Class XMLOutputter
- java.lang.Object
-
- org.apache.maven.archetype.common.util.XMLOutputter
-
- All Implemented Interfaces:
java.lang.Cloneable
public class XMLOutputter extends java.lang.Object implements java.lang.CloneableThis class is a fork from jdom 1.0 modified to preserve CData and comments parts.
Outputs a JDOM document as a stream of bytes. The outputter can manage many styles of document formatting, from untouched to pretty printed. The default is to output the document content exactly as created, but this can be changed by setting a new Format object. For pretty-print output, use
. For whitespace-normalized output, useFormat.getPrettyFormat().Format.getCompactFormat()There are
methods to print any of the standard JDOM classes, including Document and Element, to either a Writer or an OutputStream. Warning: When outputting to a Writer, make sure the writer's encoding matches the encoding setting in the Format object. This ensures the encoding in which the content is written (controlled by the Writer configuration) matches the encoding placed in the document's XML declaration (controlled by the XMLOutputter). Because a Writer cannot be queried for its encoding, the information must be passed to the Format manually in its constructor or via theoutput(...)method. The default encoding is UTF-8.Format.setEncoding(java.lang.String)The methods
are for convenience only; for top performance you should call one of theoutputString(...)methods and pass in your own Writer or OutputStream if possible.output(...)XML declarations are always printed on their own line followed by a line seperator (this doesn't change the semantics of the document). To omit printing of the declaration use
. To omit printing of the encoding in the declaration useFormat.setOmitDeclaration(boolean). Unfortunatly there is currently no way to know the original encoding of the document.Format.setOmitEncoding(boolean)Empty elements are by default printed as <empty/>, but this can be configured with
to cause them to be expanded to <empty></empty>.Format.setExpandEmptyElements(boolean)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected classXMLOutputter.NamespaceStackOur own null subclass of NamespaceStack.
-
Field Summary
Fields Modifier and Type Field Description protected FormatcurrentFormatprivate booleanescapeOutputWhether output escaping is enabled for the being processed Element - default istrueprotected static FormatpreserveFormatprivate FormatuserFormat
-
Constructor Summary
Constructors Constructor Description XMLOutputter()XMLOutputter(Format format)This will create anXMLOutputterwith the specified format characteristics.XMLOutputter(XMLOutputter that)This will create anXMLOutputterwith all the options as set in the givenXMLOutputter.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()Returns a copy of this XMLOutputter.private XMLOutputter.NamespaceStackcreateNamespaceStack()Factory for making new NamespaceStack objects.private booleanendsWithWhite(java.lang.String str)java.lang.StringescapeAttributeEntities(java.lang.String str)This will take the pre-defined entities in XML 1.0 and convert their character representation to the appropriate entity reference, suitable for XML attributes.java.lang.StringescapeElementEntities(java.lang.String str)This will take the three pre-defined entities in XML 1.0 (used specifically in XML elements) and convert their character representation to the appropriate entity reference, suitable for XML element content.FormatgetFormat()Returns the current format in use by the outputter.private voidindent(java.io.Writer out, int level)This will print indents (only if the newlines flag was set totrue, and indent is non-null).private booleanisAllWhitespace(java.lang.Object obj)private static booleanisWhitespace(char c)private java.io.WritermakeWriter(java.io.OutputStream out)Get an OutputStreamWriter, using prefered encoding (seeFormat.setEncoding(java.lang.String)).private static java.io.WritermakeWriter(java.io.OutputStream out, java.lang.String enc)Get an OutputStreamWriter, use specified encoding.private voidnewline(java.io.Writer out)This will print a new line only if the newlines flag was set to true.private static intnextNonText(java.util.List<?> content, int start)voidoutput(java.util.List<?> list, java.io.OutputStream out)This will handle printing out a list of nodes.voidoutput(java.util.List<?> list, java.io.Writer out)This will handle printing out a list of nodes.voidoutput(org.jdom.CDATA cdata, java.io.OutputStream out)Print out anode.CDATAvoidoutput(org.jdom.CDATA cdata, java.io.Writer out)Print out anode.CDATAvoidoutput(org.jdom.Comment comment, java.io.OutputStream out)Print out a.Commentvoidoutput(org.jdom.Comment comment, java.io.Writer out)Print out a.Commentvoidoutput(org.jdom.DocType doctype, java.io.OutputStream out)Print out the.DocTypevoidoutput(org.jdom.DocType doctype, java.io.Writer out)Print out the.DocTypevoidoutput(org.jdom.Document doc, java.io.OutputStream out)This will print theDocumentto the given output stream.voidoutput(org.jdom.Document doc, java.io.Writer out)This will print theDocumentto the given Writer.voidoutput(org.jdom.Element element, java.io.OutputStream out)Print out an, including itsElements, and all contained (child) elements, etc.Attributevoidoutput(org.jdom.Element element, java.io.Writer out)Print out an, including itsElements, and all contained (child) elements, etc.Attributevoidoutput(org.jdom.EntityRef entity, java.io.OutputStream out)Print out a.EntityRefvoidoutput(org.jdom.EntityRef entity, java.io.Writer out)Print out a.EntityRefvoidoutput(org.jdom.ProcessingInstruction pi, java.io.OutputStream out)Print out a.ProcessingInstructionvoidoutput(org.jdom.ProcessingInstruction pi, java.io.Writer out)Print out a.ProcessingInstructionvoidoutput(org.jdom.Text text, java.io.OutputStream out)Print out anode.Textvoidoutput(org.jdom.Text text, java.io.Writer out)Print out anode.TextvoidoutputElementContent(org.jdom.Element element, java.io.OutputStream out)This will handle printing out an's content only, not including its tag, and attributes.ElementvoidoutputElementContent(org.jdom.Element element, java.io.Writer out)This will handle printing out an's content only, not including its tag, and attributes.Elementjava.lang.StringoutputString(java.util.List<?> list)Return a string representing a list of nodes.java.lang.StringoutputString(org.jdom.CDATA cdata)Return a string representing a CDATA node.java.lang.StringoutputString(org.jdom.Comment comment)Return a string representing a comment.java.lang.StringoutputString(org.jdom.DocType doctype)Return a string representing a DocType.java.lang.StringoutputString(org.jdom.Document doc)Return a string representing a document.java.lang.StringoutputString(org.jdom.Element element)Return a string representing an element.java.lang.StringoutputString(org.jdom.EntityRef entity)Return a string representing an entity.java.lang.StringoutputString(org.jdom.ProcessingInstruction pi)Return a string representing a PI.java.lang.StringoutputString(org.jdom.Text text)Return a string representing a Text node.private voidprintAdditionalNamespaces(java.io.Writer out, org.jdom.Element element, XMLOutputter.NamespaceStack namespaces)protected voidprintAttributes(java.io.Writer out, java.util.List<?> attributes, org.jdom.Element parent, XMLOutputter.NamespaceStack namespaces)This will handle printing of alist.Attributeprotected voidprintCDATA(java.io.Writer out, org.jdom.CDATA cdata)This will handle printing oftext.CDATAprotected voidprintComment(java.io.Writer out, org.jdom.Comment comment)This will handle printing of comments.private voidprintContentRange(java.io.Writer out, java.util.List<?> content, int start, int end, int level, XMLOutputter.NamespaceStack namespaces)This will handle printing of content within a given range.protected voidprintDeclaration(java.io.Writer out, org.jdom.Document doc, java.lang.String encoding)This will handle printing of the declaration.protected voidprintDocType(java.io.Writer out, org.jdom.DocType docType)This handle printing the DOCTYPE declaration if one exists.protected voidprintElement(java.io.Writer out, org.jdom.Element element, int level, XMLOutputter.NamespaceStack namespaces)This will handle printing of a, itsElements, and all contained (child) elements, etc.Attributeprivate voidprintElementNamespace(java.io.Writer out, org.jdom.Element element, XMLOutputter.NamespaceStack namespaces)protected voidprintEntityRef(java.io.Writer out, org.jdom.EntityRef entity)This will handle printing a.EntityRefprivate voidprintNamespace(java.io.Writer out, org.jdom.Namespace ns, XMLOutputter.NamespaceStack namespaces)This will handle printing of any neededdeclarations.Namespaceprotected voidprintProcessingInstruction(java.io.Writer out, org.jdom.ProcessingInstruction pi)This will handle printing of processing instructions.private voidprintQualifiedName(java.io.Writer out, org.jdom.Attribute a)private voidprintQualifiedName(java.io.Writer out, org.jdom.Element e)private voidprintString(java.io.Writer out, java.lang.String str)This will handle printing a string.protected voidprintText(java.io.Writer out, org.jdom.Text text)This will handle printing ofstrings.Textprivate voidprintTextRange(java.io.Writer out, java.util.List<?> content, int start, int end)This will handle printing of a sequence oforCDATAnodes.TextvoidsetFormat(Format newFormat)Sets the new format logic for the outputter.private intskipLeadingWhite(java.util.List<?> content, int start)private intskipTrailingWhite(java.util.List<?> content, int start)private booleanstartsWithWhite(java.lang.String str)java.lang.StringtoString()Return a string listing of the settings for this XMLOutputter instance.
-
-
-
Constructor Detail
-
XMLOutputter
public XMLOutputter()
-
XMLOutputter
public XMLOutputter(Format format)
This will create anXMLOutputterwith the specified format characteristics. Note the format object is cloned internally before use.
-
XMLOutputter
public XMLOutputter(XMLOutputter that)
This will create anXMLOutputterwith all the options as set in the givenXMLOutputter. Note thatXMLOutputter two = (XMLOutputter)one.clone();would work equally well.- Parameters:
that- the XMLOutputter to clone
-
-
Method Detail
-
setFormat
public void setFormat(Format newFormat)
Sets the new format logic for the outputter. Note the Format object is cloned internally before use.- Parameters:
newFormat- the format to use for output
-
getFormat
public Format getFormat()
Returns the current format in use by the outputter. Note the Format object returned is a clone of the one used internally.
-
output
public void output(org.jdom.Document doc, java.io.OutputStream out) throws java.io.IOExceptionThis will print theDocumentto the given output stream. The characters are printed using the encoding specified in the constructor, or a default of UTF-8.- Parameters:
doc-Documentto format.out-OutputStreamto use.- Throws:
java.io.IOException- - if there's any problem writing.
-
output
public void output(org.jdom.DocType doctype, java.io.OutputStream out) throws java.io.IOExceptionPrint out the.DocType- Parameters:
doctype-DocTypeto output.out-OutputStreamto use.- Throws:
java.io.IOException
-
output
public void output(org.jdom.Element element, java.io.OutputStream out) throws java.io.IOExceptionPrint out an, including itsElements, and all contained (child) elements, etc.Attribute- Parameters:
element-Elementto output.out-Writerto use.- Throws:
java.io.IOException
-
outputElementContent
public void outputElementContent(org.jdom.Element element, java.io.OutputStream out) throws java.io.IOExceptionThis will handle printing out an's content only, not including its tag, and attributes. This can be useful for printing the content of an element that contains HTML, like "<description>JDOM is <b>fun>!</description>".Element- Parameters:
element-Elementto output.out-OutputStreamto use.- Throws:
java.io.IOException
-
output
public void output(java.util.List<?> list, java.io.OutputStream out) throws java.io.IOExceptionThis will handle printing out a list of nodes. This can be useful for printing the content of an element that contains HTML, like "<description>JDOM is <b>fun>!</description>".- Parameters:
list-Listof nodes.out-OutputStreamto use.- Throws:
java.io.IOException
-
output
public void output(org.jdom.CDATA cdata, java.io.OutputStream out) throws java.io.IOExceptionPrint out anode.CDATA- Parameters:
cdata-CDATAto output.out-OutputStreamto use.- Throws:
java.io.IOException
-
output
public void output(org.jdom.Text text, java.io.OutputStream out) throws java.io.IOExceptionPrint out anode. Perfoms the necessary entity escaping and whitespace stripping.Text- Parameters:
text-Textto output.out-OutputStreamto use.- Throws:
java.io.IOException
-
output
public void output(org.jdom.Comment comment, java.io.OutputStream out) throws java.io.IOExceptionPrint out a.Comment- Parameters:
comment-Commentto output.out-OutputStreamto use.- Throws:
java.io.IOException
-
output
public void output(org.jdom.ProcessingInstruction pi, java.io.OutputStream out) throws java.io.IOExceptionPrint out a.ProcessingInstruction- Parameters:
pi-ProcessingInstructionto output.out-OutputStreamto use.- Throws:
java.io.IOException
-
output
public void output(org.jdom.EntityRef entity, java.io.OutputStream out) throws java.io.IOExceptionPrint out a.EntityRef- Parameters:
entity-EntityRefto output.out-OutputStreamto use.- Throws:
java.io.IOException
-
makeWriter
private java.io.Writer makeWriter(java.io.OutputStream out) throws java.io.UnsupportedEncodingExceptionGet an OutputStreamWriter, using prefered encoding (seeFormat.setEncoding(java.lang.String)).- Throws:
java.io.UnsupportedEncodingException
-
makeWriter
private static java.io.Writer makeWriter(java.io.OutputStream out, java.lang.String enc) throws java.io.UnsupportedEncodingExceptionGet an OutputStreamWriter, use specified encoding.- Throws:
java.io.UnsupportedEncodingException
-
output
public void output(org.jdom.Document doc, java.io.Writer out) throws java.io.IOExceptionThis will print the
Documentto the given Writer.Warning: using your own Writer may cause the outputter's preferred character encoding to be ignored. If you use encodings other than UTF-8, we recommend using the method that takes an OutputStream instead.
- Parameters:
doc-Documentto format.out-Writerto use.- Throws:
java.io.IOException- - if there's any problem writing.
-
output
public void output(org.jdom.DocType doctype, java.io.Writer out) throws java.io.IOExceptionPrint out the.DocType- Parameters:
doctype-DocTypeto output.out-Writerto use.- Throws:
java.io.IOException
-
output
public void output(org.jdom.Element element, java.io.Writer out) throws java.io.IOExceptionPrint out an, including itsElements, and all contained (child) elements, etc.Attribute- Parameters:
element-Elementto output.out-Writerto use.- Throws:
java.io.IOException
-
outputElementContent
public void outputElementContent(org.jdom.Element element, java.io.Writer out) throws java.io.IOExceptionThis will handle printing out an's content only, not including its tag, and attributes. This can be useful for printing the content of an element that contains HTML, like "<description>JDOM is <b>fun>!</description>".Element- Parameters:
element-Elementto output.out-Writerto use.- Throws:
java.io.IOException
-
output
public void output(java.util.List<?> list, java.io.Writer out) throws java.io.IOExceptionThis will handle printing out a list of nodes. This can be useful for printing the content of an element that contains HTML, like "<description>JDOM is <b>fun>!</description>".- Parameters:
list-Listof nodes.out-Writerto use.- Throws:
java.io.IOException
-
output
public void output(org.jdom.CDATA cdata, java.io.Writer out) throws java.io.IOExceptionPrint out anode.CDATA- Parameters:
cdata-CDATAto output.out-Writerto use.- Throws:
java.io.IOException
-
output
public void output(org.jdom.Text text, java.io.Writer out) throws java.io.IOExceptionPrint out anode. Perfoms the necessary entity escaping and whitespace stripping.Text- Parameters:
text-Textto output.out-Writerto use.- Throws:
java.io.IOException
-
output
public void output(org.jdom.Comment comment, java.io.Writer out) throws java.io.IOExceptionPrint out a.Comment- Parameters:
comment-Commentto output.out-Writerto use.- Throws:
java.io.IOException
-
output
public void output(org.jdom.ProcessingInstruction pi, java.io.Writer out) throws java.io.IOExceptionPrint out a.ProcessingInstruction- Parameters:
pi-ProcessingInstructionto output.out-Writerto use.- Throws:
java.io.IOException
-
output
public void output(org.jdom.EntityRef entity, java.io.Writer out) throws java.io.IOExceptionPrint out a.EntityRef- Parameters:
entity-EntityRefto output.out-Writerto use.- Throws:
java.io.IOException
-
outputString
public java.lang.String outputString(org.jdom.Document doc)
Return a string representing a document. Uses an internal StringWriter. Warning: a String is Unicode, which may not match the outputter's specified encoding.- Parameters:
doc-Documentto format.
-
outputString
public java.lang.String outputString(org.jdom.DocType doctype)
Return a string representing a DocType. Warning: a String is Unicode, which may not match the outputter's specified encoding.- Parameters:
doctype-DocTypeto format.
-
outputString
public java.lang.String outputString(org.jdom.Element element)
Return a string representing an element. Warning: a String is Unicode, which may not match the outputter's specified encoding.- Parameters:
element-Elementto format.
-
outputString
public java.lang.String outputString(java.util.List<?> list)
Return a string representing a list of nodes. The list is assumed to contain legal JDOM nodes.- Parameters:
list-Listto format.
-
outputString
public java.lang.String outputString(org.jdom.CDATA cdata)
Return a string representing a CDATA node. Warning: a String is Unicode, which may not match the outputter's specified encoding.- Parameters:
cdata-CDATAto format.
-
outputString
public java.lang.String outputString(org.jdom.Text text)
Return a string representing a Text node. Warning: a String is Unicode, which may not match the outputter's specified encoding.- Parameters:
text-Textto format.
-
outputString
public java.lang.String outputString(org.jdom.Comment comment)
Return a string representing a comment. Warning: a String is Unicode, which may not match the outputter's specified encoding.- Parameters:
comment-Commentto format.
-
outputString
public java.lang.String outputString(org.jdom.ProcessingInstruction pi)
Return a string representing a PI. Warning: a String is Unicode, which may not match the outputter's specified encoding.- Parameters:
pi-ProcessingInstructionto format.
-
outputString
public java.lang.String outputString(org.jdom.EntityRef entity)
Return a string representing an entity. Warning: a String is Unicode, which may not match the outputter's specified encoding.- Parameters:
entity-EntityRefto format.
-
printDeclaration
protected void printDeclaration(java.io.Writer out, org.jdom.Document doc, java.lang.String encoding) throws java.io.IOExceptionThis will handle printing of the declaration. Assumes XML version 1.0 since we don't directly know.- Parameters:
doc-Documentwhose declaration to write.out-Writerto use.encoding- The encoding to add to the declaration- Throws:
java.io.IOException
-
printDocType
protected void printDocType(java.io.Writer out, org.jdom.DocType docType) throws java.io.IOExceptionThis handle printing the DOCTYPE declaration if one exists.- Parameters:
docType-Documentwhose declaration to write.out-Writerto use.- Throws:
java.io.IOException
-
printComment
protected void printComment(java.io.Writer out, org.jdom.Comment comment) throws java.io.IOExceptionThis will handle printing of comments.- Parameters:
comment-Commentto write.out-Writerto use.- Throws:
java.io.IOException
-
printProcessingInstruction
protected void printProcessingInstruction(java.io.Writer out, org.jdom.ProcessingInstruction pi) throws java.io.IOExceptionThis will handle printing of processing instructions.- Parameters:
pi-ProcessingInstructionto write.out-Writerto use.- Throws:
java.io.IOException
-
printEntityRef
protected void printEntityRef(java.io.Writer out, org.jdom.EntityRef entity) throws java.io.IOExceptionThis will handle printing a. Only the entity reference such asEntityRef&entity;will be printed. However, subclasses are free to override this method to print the contents of the entity instead.- Parameters:
entity-EntityRefto output.out-Writerto use.- Throws:
java.io.IOException
-
printCDATA
protected void printCDATA(java.io.Writer out, org.jdom.CDATA cdata) throws java.io.IOExceptionThis will handle printing oftext.CDATA- Parameters:
cdata-CDATAto output.out-Writerto use.- Throws:
java.io.IOException
-
printText
protected void printText(java.io.Writer out, org.jdom.Text text) throws java.io.IOExceptionThis will handle printing ofstrings.Text- Parameters:
text-Textto write.out-Writerto use.- Throws:
java.io.IOException
-
printString
private void printString(java.io.Writer out, java.lang.String str) throws java.io.IOExceptionThis will handle printing a string. Escapes the element entities, trims interior whitespace, etc. if necessary.- Throws:
java.io.IOException
-
printElement
protected void printElement(java.io.Writer out, org.jdom.Element element, int level, XMLOutputter.NamespaceStack namespaces) throws java.io.IOExceptionThis will handle printing of a, itsElements, and all contained (child) elements, etc.Attribute- Parameters:
element-Elementto output.out-Writerto use.level-intlevel of indention.namespaces-Liststack of Namespaces in scope.- Throws:
java.io.IOException
-
printContentRange
private void printContentRange(java.io.Writer out, java.util.List<?> content, int start, int end, int level, XMLOutputter.NamespaceStack namespaces) throws java.io.IOExceptionThis will handle printing of content within a given range. The range to print is specified in typical Java fashion; the starting index is inclusive, while the ending index is exclusive.- Parameters:
content-Listof content to outputstart- index of first content node (inclusive.end- index of last content node (exclusive).out-Writerto use.level-intlevel of indentation.namespaces-Liststack of Namespaces in scope.- Throws:
java.io.IOException
-
printTextRange
private void printTextRange(java.io.Writer out, java.util.List<?> content, int start, int end) throws java.io.IOExceptionThis will handle printing of a sequence oforCDATAnodes. It is an error to have any other pass this method any other type of node.Text- Parameters:
content-Listof content to outputstart- index of first content node (inclusive).end- index of last content node (exclusive).out-Writerto use.- Throws:
java.io.IOException
-
printNamespace
private void printNamespace(java.io.Writer out, org.jdom.Namespace ns, XMLOutputter.NamespaceStack namespaces) throws java.io.IOExceptionThis will handle printing of any neededdeclarations.Namespace- Parameters:
ns-Namespaceto print definition ofout-Writerto use.- Throws:
java.io.IOException
-
printAttributes
protected void printAttributes(java.io.Writer out, java.util.List<?> attributes, org.jdom.Element parent, XMLOutputter.NamespaceStack namespaces) throws java.io.IOExceptionThis will handle printing of alist.Attribute- Parameters:
attributes-Listof Attribute objctsout-Writerto use- Throws:
java.io.IOException
-
printElementNamespace
private void printElementNamespace(java.io.Writer out, org.jdom.Element element, XMLOutputter.NamespaceStack namespaces) throws java.io.IOException- Throws:
java.io.IOException
-
printAdditionalNamespaces
private void printAdditionalNamespaces(java.io.Writer out, org.jdom.Element element, XMLOutputter.NamespaceStack namespaces) throws java.io.IOException- Throws:
java.io.IOException
-
newline
private void newline(java.io.Writer out) throws java.io.IOExceptionThis will print a new line only if the newlines flag was set to true.- Parameters:
out-Writerto use- Throws:
java.io.IOException
-
indent
private void indent(java.io.Writer out, int level) throws java.io.IOExceptionThis will print indents (only if the newlines flag was set totrue, and indent is non-null).- Parameters:
out-Writerto uselevel- current indent level (number of tabs)- Throws:
java.io.IOException
-
skipLeadingWhite
private int skipLeadingWhite(java.util.List<?> content, int start)
-
skipTrailingWhite
private int skipTrailingWhite(java.util.List<?> content, int start)
-
nextNonText
private static int nextNonText(java.util.List<?> content, int start)
-
isAllWhitespace
private boolean isAllWhitespace(java.lang.Object obj)
-
startsWithWhite
private boolean startsWithWhite(java.lang.String str)
-
endsWithWhite
private boolean endsWithWhite(java.lang.String str)
-
isWhitespace
private static boolean isWhitespace(char c)
-
escapeAttributeEntities
public java.lang.String escapeAttributeEntities(java.lang.String str)
This will take the pre-defined entities in XML 1.0 and convert their character representation to the appropriate entity reference, suitable for XML attributes. It does not convert the single quote (') because it's not necessary as the outputter writes attributes surrounded by double-quotes.- Parameters:
str-Stringinput to escape.- Returns:
Stringwith escaped content.
-
escapeElementEntities
public java.lang.String escapeElementEntities(java.lang.String str)
This will take the three pre-defined entities in XML 1.0 (used specifically in XML elements) and convert their character representation to the appropriate entity reference, suitable for XML element content.- Parameters:
str-Stringinput to escape.- Returns:
Stringwith escaped content.
-
clone
public java.lang.Object clone()
Returns a copy of this XMLOutputter.- Overrides:
clonein classjava.lang.Object
-
toString
public java.lang.String toString()
Return a string listing of the settings for this XMLOutputter instance.- Overrides:
toStringin classjava.lang.Object- Returns:
- a string listing the settings for this XMLOutputter instance
-
createNamespaceStack
private XMLOutputter.NamespaceStack createNamespaceStack()
Factory for making new NamespaceStack objects. The NamespaceStack created is actually an inner class extending the package protected NamespaceStack, as a way to make NamespaceStack "friendly" toward subclassers.
-
printQualifiedName
private void printQualifiedName(java.io.Writer out, org.jdom.Element e) throws java.io.IOException- Throws:
java.io.IOException
-
printQualifiedName
private void printQualifiedName(java.io.Writer out, org.jdom.Attribute a) throws java.io.IOException- Throws:
java.io.IOException
-
-