FileDocCategorySizeDatePackage
XMLStringFactoryImpl.javaAPI DocJava SE 5 API2923Fri Aug 26 14:56:10 BST 2005com.sun.org.apache.xpath.internal.objects

XMLStringFactoryImpl

public class XMLStringFactoryImpl extends XMLStringFactory
Class XMLStringFactoryImpl creates XString versions of XMLStrings.
xsl.usage
internal

Fields Summary
private static XMLStringFactory
m_xstringfactory
The XMLStringFactory to pass to DTM construction.
Constructors Summary
Methods Summary
public 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 "".

    return XString.EMPTYSTRING;
  
public static com.sun.org.apache.xml.internal.utils.XMLStringFactorygetFactory()
Get the XMLStringFactory to pass to DTM construction.

return
A never-null static reference to a String factory.


                      
     
  
    return m_xstringfactory;
  
public 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.

    return new XString(string);
  
public com.sun.org.apache.xml.internal.utils.XMLStringnewstr(com.sun.org.apache.xml.internal.utils.FastStringBuffer fsb, 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.

    return new XStringForFSB(fsb, start, length);
  
public 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.

    return new XStringForChars(string, start, length);