com.isti.util
Class IstiXMLOutputter

java.lang.Object
  extended by org.jdom.output.XMLOutputter
      extended by com.isti.util.IstiXMLOutputter
All Implemented Interfaces:
java.lang.Cloneable

public class IstiXMLOutputter
extends org.jdom.output.XMLOutputter

Class IstiXMLOutputter extends the 'XMLOutputter' class to add additional functionality.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.jdom.output.XMLOutputter
org.jdom.output.XMLOutputter.NamespaceStack
 
Field Summary
static java.lang.String DEFAULT_ENCODING_FORMAT
          Default encoding.
 
Constructor Summary
IstiXMLOutputter()
          This will create an XMLOutputter with no additional whitespace (indent or newlines) added; the whitespace from the element text content is fully preserved.
IstiXMLOutputter(java.lang.String encoding)
          This will create an XMLOutputter with no additional whitespace (indent or newlines) added; the whitespace from the element text content is fully preserved.
 
Method Summary
 java.lang.String getEncodedString(java.lang.String s)
          Gets the encoded string using the current encoding.
 void setEncoding(java.lang.String encoding)
          Sets the output encoding.
 
Methods inherited from class org.jdom.output.XMLOutputter
clone, createNamespaceStack, escapeAttributeEntities, escapeElementEntities, indent, makeWriter, makeWriter, newline, output, output, output, output, output, output, output, output, output, output, output, output, output, output, output, output, output, output, output, output, outputElementContent, outputElementContent, outputString, outputString, outputString, outputString, outputString, outputString, outputString, outputString, outputString, outputString, parseArgs, printAttributes, printCDATA, printComment, printContentRange, printDeclaration, printDocType, printElement, printEntityRef, printProcessingInstruction, printString, printText, printTextRange, setExpandEmptyElements, setIndent, setIndent, setIndent, setIndentSize, setLineSeparator, setNewlines, setOmitDeclaration, setOmitEncoding, setTextNormalize, setTextTrim, setTrimAllWhite, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DEFAULT_ENCODING_FORMAT

public static final java.lang.String DEFAULT_ENCODING_FORMAT
Default encoding. This may be used for the XMLOutputter.setEncoding() method.

See Also:
Constant Field Values
Constructor Detail

IstiXMLOutputter

public IstiXMLOutputter()
This will create an XMLOutputter with no additional whitespace (indent or newlines) added; the whitespace from the element text content is fully preserved.


IstiXMLOutputter

public IstiXMLOutputter(java.lang.String encoding)
This will create an XMLOutputter with no additional whitespace (indent or newlines) added; the whitespace from the element text content is fully preserved.

Parameters:
encoding - set encoding format. Use XML-style names like "UTF-8" or "ISO-8859-1" or "US-ASCII" (see setEncoding(java.lang.String)).
Method Detail

getEncodedString

public java.lang.String getEncodedString(java.lang.String s)
Gets the encoded string using the current encoding.

Parameters:
s - the string to encode.
Returns:
the encoded string or the original string if an error occurs. (see setEncoding(java.lang.String)).

setEncoding

public void setEncoding(java.lang.String encoding)
Sets the output encoding. The name should be an accepted XML encoding.

Overrides:
setEncoding in class org.jdom.output.XMLOutputter
Parameters:
encoding - the encoding format. Use XML-style names like "UTF-8" or "ISO-8859-1" or "US-ASCII" (see XMLOutputter.makeWriter(java.io.OutputStream)).