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

public Class XMLStringFactoryDefault

extends XMLStringFactory
Class Inheritance

The default implementation of XMLStringFactory. This implementation creates XMLStringDefault objects.

Field Summary

Modifier and TypeField and Description
private static final XMLStringDefault

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 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

EMPTY_STRback to summary
private static final XMLStringDefault EMPTY_STR

Constructor Detail

XMLStringFactoryDefaultback to summary
public XMLStringFactoryDefault()

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 "".

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.