Package org.apache.xml.utils
Class XMLStringFactory
java.lang.Object
org.apache.xml.utils.XMLStringFactory
- Direct Known Subclasses:
XMLStringFactoryImpl
public abstract class XMLStringFactory extends Object
A concrete class that implements this interface creates XMLString objects.
-
Constructor Summary
Constructors Constructor Description XMLStringFactory() -
Method Summary
Modifier and Type Method Description abstract XMLStringemptystr()Get a cheap representation of an empty string.abstract XMLStringnewstr(char[] string, int start, int length)Create a XMLString from a FastStringBuffer.abstract XMLStringnewstr(String string)Create a new XMLString from a Java string.abstract XMLStringnewstr(FastStringBuffer string, int start, int length)Create a XMLString from a FastStringBuffer.
-
Constructor Details
-
XMLStringFactory
public XMLStringFactory()
-
-
Method Details
-
newstr
Create a new XMLString from a Java string.- Parameters:
string- Java String reference, which must be non-null.- Returns:
- An XMLString object that wraps the String reference.
-
newstr
Create a XMLString from a FastStringBuffer.- Parameters:
string- FastStringBuffer reference, which must be non-null.start- The start position in the array.length- The number of characters to read from the array.- Returns:
- An XMLString object that wraps the FastStringBuffer reference.
-
newstr
Create a XMLString from a FastStringBuffer.- Parameters:
string- FastStringBuffer reference, which must be non-null.start- The start position in the array.length- The number of characters to read from the array.- Returns:
- An XMLString object that wraps the FastStringBuffer reference.
-
emptystr
Get a cheap representation of an empty string.- Returns:
- An non-null reference to an XMLString that represents "".
-