Package org.apache.xml.utils
Class XMLStringFactoryDefault
- java.lang.Object
-
- org.apache.xml.utils.XMLStringFactory
-
- org.apache.xml.utils.XMLStringFactoryDefault
-
public class XMLStringFactoryDefault extends XMLStringFactory
The default implementation of XMLStringFactory. This implementation creates XMLStringDefault objects.
-
-
Constructor Summary
Constructors Constructor Description XMLStringFactoryDefault()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description XMLStringemptystr()Get a cheap representation of an empty string.XMLStringnewstr(char[] string, int start, int length)Create a XMLString from a FastStringBuffer.XMLStringnewstr(java.lang.String string)Create a new XMLString from a Java string.XMLStringnewstr(FastStringBuffer fsb, int start, int length)Create a XMLString from a FastStringBuffer.
-
-
-
Method Detail
-
newstr
public XMLString newstr(java.lang.String string)
Create a new XMLString from a Java string.- Specified by:
newstrin classXMLStringFactory- Parameters:
string- Java String reference, which must be non-null.- Returns:
- An XMLString object that wraps the String reference.
-
newstr
public XMLString newstr(FastStringBuffer fsb, int start, int length)
Create a XMLString from a FastStringBuffer.- Specified by:
newstrin classXMLStringFactory- Parameters:
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.- Returns:
- An XMLString object that wraps the FastStringBuffer reference.
-
newstr
public XMLString newstr(char[] string, int start, int length)
Create a XMLString from a FastStringBuffer.- Specified by:
newstrin classXMLStringFactory- 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
public XMLString emptystr()
Get a cheap representation of an empty string.- Specified by:
emptystrin classXMLStringFactory- Returns:
- An non-null reference to an XMLString that represents "".
-
-