APIdia Launch Partner
Top Description Fields Constructors Methods
com.sun.org.apache.xpath.internal.objects

public Class XMLStringFactoryImpl

extends XMLStringFactory
Class Inheritance
Imports
com.sun.org.apache.xml.internal.utils.FastStringBuffer, .XMLString, .XMLStringFactory

Class XMLStringFactoryImpl creates XString versions of XMLStrings.

Field Summary

Modifier and TypeField and Description
private static XMLStringFactory
m_xstringfactory

The XMLStringFactory to pass to DTM construction.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public XMLString

Returns:

An non-null reference to an XMLString that represents "".
emptystr
()

Implements abstract com.sun.org.apache.xml.internal.utils.XMLStringFactory.emptystr.

Get a cheap representation of an empty string.

public static XMLStringFactory

Returns:

A never-null static reference to a String factory.
getFactory
()

Get the XMLStringFactory to pass to DTM construction.

public XMLString

Returns:

An XMLString object that wraps the String reference.
newstr
(String
Java String reference, which must be non-null.
string
)

Implements abstract com.sun.org.apache.xml.internal.utils.XMLStringFactory.newstr.

Create a new XMLString from a Java string.

public XMLString

Returns:

An XMLString object that wraps the FastStringBuffer reference.
newstr
(FastStringBuffer
FastStringBuffer reference, which must be non-null.
fsb
,
int
The start position in the array.
start
,
int
The number of characters to read from the array.
length
)

Implements abstract com.sun.org.apache.xml.internal.utils.XMLStringFactory.newstr.

Create a XMLString from a FastStringBuffer.

public XMLString

Returns:

An XMLString object that wraps the FastStringBuffer reference.
newstr
(char[]
FastStringBuffer reference, which must be non-null.
string
,
int
The start position in the array.
start
,
int
The number of characters to read from the array.
length
)

Implements abstract com.sun.org.apache.xml.internal.utils.XMLStringFactory.newstr.

Create a XMLString from a FastStringBuffer.

Field Detail

m_xstringfactoryback to summary
private static XMLStringFactory m_xstringfactory

The XMLStringFactory to pass to DTM construction.

Constructor Detail

XMLStringFactoryImplback to summary
public XMLStringFactoryImpl()

Method Detail

emptystrback to summary
public XMLString emptystr()

Implements abstract com.sun.org.apache.xml.internal.utils.XMLStringFactory.emptystr.

Get a cheap representation of an empty string.

Returns:XMLString

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

getFactoryback to summary
public static XMLStringFactory getFactory()

Get the XMLStringFactory to pass to DTM construction.

Returns:XMLStringFactory

A never-null static reference to a String factory.

newstrback to summary
public XMLString newstr(String string)

Implements abstract com.sun.org.apache.xml.internal.utils.XMLStringFactory.newstr.

Create a new XMLString from a Java string.

Parameters
string:String

Java String reference, which must be non-null.

Returns:XMLString

An XMLString object that wraps the String reference.

newstrback to summary
public XMLString newstr(FastStringBuffer fsb, int start, int length)

Implements abstract com.sun.org.apache.xml.internal.utils.XMLStringFactory.newstr.

Create a XMLString from a FastStringBuffer.

Parameters
fsb:FastStringBuffer

FastStringBuffer reference, which must be non-null.

start:int

The start position in the array.

length:int

The number of characters to read from the array.

Returns:XMLString

An XMLString object that wraps the FastStringBuffer reference.

newstrback to summary
public XMLString newstr(char[] string, int start, int length)

Implements abstract com.sun.org.apache.xml.internal.utils.XMLStringFactory.newstr.

Create a XMLString from a FastStringBuffer.

Parameters
string:char[]

FastStringBuffer reference, which must be non-null.

start:int

The start position in the array.

length:int

The number of characters to read from the array.

Returns:XMLString

An XMLString object that wraps the FastStringBuffer reference.