This JDOMFactory instance reduces the amount of memory used by JDOM content. It does this by reusing String instances instead of using new (but equals()) instances. It uses the StringBin class to provide a String cache.
Construct a SlimJDOMFactory which will optionally cache Text/CDATA/Comment/Attribute values.
This will create a new Attribute with the specified (local) name and value, and does not place the attribute in a Namespace.
This will create a new Attribute with the specified (local) name, value and type, and does not place the attribute in a Namespace.
This will create a new Attribute with the specified (local) name, value, and type, and in the provided Namespace.
This will create a new Attribute with the specified (local) name and value, and in the provided Namespace.
This creates the CDATA with the supplied text.
Reset any Cached String instance data from this SlimJDOMFaxctory cache.
This creates the comment with the supplied text.
This will create the DocType with the specified element name and reference to an external DTD.
This will create the DocType with the specified element name and a reference to an external DTD.
This will create an Element in no Namespace.
This will create a new Element with the supplied (local) name, and define the Namespace to be used.
This will create a new Element with the supplied (local) name, and specifies the URI of the Namespace the Element should be in, resulting it being unprefixed (in the default namespace).
This will create a new Element with the supplied (local) name, and specifies the prefix and URI of the Namespace the Element should be in.
This will create a new EntityRef with the supplied name.
This will create a new EntityRef with the supplied name and system ID.
This will create a new EntityRef with the supplied name, public ID, and system ID.
This will create a new ProcessingInstruction with the specified target and no data.
This will create a new ProcessingInstruction with the specified target and data.
This creates the Text with the supplied text.
cachetext - should be true if you want the content of CDATA, Text, Comment and Attribute values cached as well.
name - String name of Attribute.
value - String value for new attribute.
type - int type for new attribute.
namespace - Namespace namespace for new attribute.
type - AttributeType type for new attribute.
Note: This actually explicitly puts the Attribute in the "empty" Namespace (Namespace.NO_NAMESPACE).
line - The line on which this content begins.
col - The column on the line at which this content begins.
str - String content of CDATA.
str - String content of Text.
text - String content of comment.
elementName - String name of element being constrained.
name - String name of element.
namespace - Namespace to put element in.
uri - String URI for Namespace element should be in.
target - String target of PI.
data - String data for PI.
publicID - String public ID of element.
systemID - String system ID of element.
Copyright © 2015 Jason Hunter, Brett McLaughlin. All Rights Reserved.