FileDocCategorySizeDatePackage
XMLStringFactory.javaAPI DocJava SE 5 API2266Fri Aug 26 14:56:04 BST 2005com.sun.org.apache.xml.internal.utils

XMLStringFactory

public abstract class XMLStringFactory extends Object
A concrete class that implements this interface creates XMLString objects.

Fields Summary
Constructors Summary
Methods Summary
public abstract com.sun.org.apache.xml.internal.utils.XMLStringemptystr()
Get a cheap representation of an empty string.

return
An non-null reference to an XMLString that represents "".

public abstract com.sun.org.apache.xml.internal.utils.XMLStringnewstr(java.lang.String string)
Create a new XMLString from a Java string.

param
string Java String reference, which must be non-null.
return
An XMLString object that wraps the String reference.

public abstract com.sun.org.apache.xml.internal.utils.XMLStringnewstr(com.sun.org.apache.xml.internal.utils.FastStringBuffer string, int start, int length)
Create a XMLString from a FastStringBuffer.

param
string FastStringBuffer reference, which must be non-null.
param
start The start position in the array.
param
length The number of characters to read from the array.
return
An XMLString object that wraps the FastStringBuffer reference.

public abstract com.sun.org.apache.xml.internal.utils.XMLStringnewstr(char[] string, int start, int length)
Create a XMLString from a FastStringBuffer.

param
string FastStringBuffer reference, which must be non-null.
param
start The start position in the array.
param
length The number of characters to read from the array.
return
An XMLString object that wraps the FastStringBuffer reference.