FileDocCategorySizeDatePackage
XMLStringFactoryDefault.javaAPI DocJava SE 6 API2571Tue Jun 10 00:23:12 BST 2008com.sun.org.apache.xml.internal.utils

XMLStringFactoryDefault

public class XMLStringFactoryDefault extends XMLStringFactory
The default implementation of XMLStringFactory. This implementation creates XMLStringDefault objects.

Fields Summary
private static final XMLStringDefault
EMPTY_STR
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 EMPTY_STR;
  
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 XMLStringDefault(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
fsb 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 XMLStringDefault(fsb.getString(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 XMLStringDefault(new String(string, start, length));