org.apache.xml.utils
Class XMLStringFactory
public abstract class XMLStringFactory
A concrete class that implements this interface creates XMLString objects.
emptystr
public abstract XMLString emptystr()
Get a cheap representation of an empty string.
- An non-null reference to an XMLString that represents "".
newstr
public abstract XMLString newstr(String string)
Create a new XMLString from a Java string.
string
- Java String reference, which must be non-null.
- An XMLString object that wraps the String reference.
newstr
public abstract XMLString newstr(char[] string,
int start,
int length)
Create a XMLString from a FastStringBuffer.
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.
- An XMLString object that wraps the FastStringBuffer reference.
newstr
public abstract XMLString newstr(FastStringBuffer string,
int start,
int length)
Create a XMLString from a FastStringBuffer.
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.
- An XMLString object that wraps the FastStringBuffer reference.
Copyright B) 2004 Apache XML Project. All Rights Reserved.