org.apache.xml.utils
Class XMLStringFactoryDefault
public class XMLStringFactoryDefault
The default implementation of XMLStringFactory.
This implementation creates XMLStringDefault objects.
emptystr
public XMLString emptystr()
Get a cheap representation of an empty string.
- emptystr in interface XMLStringFactory
- An non-null reference to an XMLString that represents "".
newstr
public XMLString newstr(String string)
Create a new XMLString from a Java string.
- newstr in interface XMLStringFactory
string
- Java String reference, which must be non-null.
- An XMLString object that wraps the String reference.
newstr
public XMLString newstr(char[] string,
int start,
int length)
Create a XMLString from a FastStringBuffer.
- newstr in interface XMLStringFactory
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 XMLString newstr(FastStringBuffer fsb,
int start,
int length)
Create a XMLString from a FastStringBuffer.
- newstr in interface XMLStringFactory
fsb
- 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.