org.apache.xpath.objects

Class XMLStringFactoryImpl

public class XMLStringFactoryImpl extends XMLStringFactory

Class XMLStringFactoryImpl creates XString versions of XMLStrings.

UNKNOWN: internal

Method Summary
XMLStringemptystr()
Get a cheap representation of an empty string.
static XMLStringFactorygetFactory()
Get the XMLStringFactory to pass to DTM construction.
XMLStringnewstr(String string)
Create a new XMLString from a Java string.
XMLStringnewstr(FastStringBuffer fsb, int start, int length)
Create a XMLString from a FastStringBuffer.
XMLStringnewstr(char[] string, int start, int length)
Create a XMLString from a FastStringBuffer.

Method Detail

emptystr

public XMLString emptystr()
Get a cheap representation of an empty string.

Returns: An non-null reference to an XMLString that represents "".

getFactory

public static XMLStringFactory getFactory()
Get the XMLStringFactory to pass to DTM construction.

Returns: A never-null static reference to a String factory.

newstr

public XMLString newstr(String string)
Create a new XMLString from a Java string.

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.

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.

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.

Copyright B) 2005 Apache XML Project. All Rights Reserved.