APIdia Launch Partner
Top Description Constructors Methods
com.sun.org.apache.xml.internal.utils

public abstract Class XMLStringFactory

extends Object
Class Inheritance
Known Direct Subclasses
com.sun.org.apache.xml.internal.utils.XMLStringFactoryDefault, com.sun.org.apache.xpath.internal.objects.XMLStringFactoryImpl

A concrete class that implements this interface creates XMLString objects.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public abstract XMLString

Returns:

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

Get a cheap representation of an empty string.

public abstract XMLString

Returns:

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

Create a new XMLString from a Java string.

public abstract XMLString

Returns:

An XMLString object that wraps the FastStringBuffer reference.
newstr
(FastStringBuffer
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
)

Create a XMLString from a FastStringBuffer.

public abstract 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
)

Create a XMLString from a FastStringBuffer.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

XMLStringFactoryback to summary
public XMLStringFactory()

Method Detail

emptystrback to summary
public abstract XMLString emptystr()

Get a cheap representation of an empty string.

Returns:XMLString

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

newstrback to summary
public abstract XMLString newstr(String string)

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 abstract XMLString newstr(FastStringBuffer string, int start, int length)

Create a XMLString from a FastStringBuffer.

Parameters
string: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 abstract XMLString newstr(char[] string, int start, int length)

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.