public class XMLStringFactoryImpl extends XMLStringFactory
Constructor and Description |
---|
XMLStringFactoryImpl() |
Modifier and Type | Method and Description |
---|---|
XMLString |
emptystr()
Get a cheap representation of an empty string.
|
static XMLStringFactory |
getFactory()
Get the XMLStringFactory to pass to DTM construction.
|
XMLString |
newstr(char[] string,
int start,
int length)
Create a XMLString from a FastStringBuffer.
|
XMLString |
newstr(FastStringBuffer fsb,
int start,
int length)
Create a XMLString from a FastStringBuffer.
|
XMLString |
newstr(String string)
Create a new XMLString from a Java string.
|
public static XMLStringFactory getFactory()
public XMLString newstr(String string)
newstr
in class XMLStringFactory
string
- Java String reference, which must be non-null.public XMLString newstr(FastStringBuffer fsb, int start, int length)
newstr
in class XMLStringFactory
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.public XMLString newstr(char[] string, int start, int length)
newstr
in class XMLStringFactory
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.public XMLString emptystr()
emptystr
in class XMLStringFactory
Copyright © 2019 JBoss by Red Hat. All rights reserved.