BEA Systems, Inc.


weblogic.apache.xpath.objects
Class XMLStringFactoryImpl

java.lang.Object
  |
  +--weblogic.apache.xml.utils.XMLStringFactory
        |
        +--weblogic.apache.xpath.objects.XMLStringFactoryImpl

public class XMLStringFactoryImpl
extends XMLStringFactory

Class XMLStringFactoryImpl creates XString versions of XMLStrings.

This class is based on an implementation from the Apache XML Project. In future releases the XML parser, XSLT processor, and associated classes will likely be updated to be based on a later version of the Apache implementations. Since Apache does not guarantee backwards compatibility between versions of their software, we cannot guarantee backwards compatibility of any of the classes contained in the weblogic.apache package or sub-packages.


Constructor Summary
XMLStringFactoryImpl()
           
 
Method Summary
 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(java.lang.String string)
          Create a new XMLString from a Java string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLStringFactoryImpl

public XMLStringFactoryImpl()
Method Detail

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(java.lang.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.
Overrides:
newstr in class XMLStringFactory

newstr

public XMLString newstr(FastStringBuffer fsb,
                        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.
Overrides:
newstr in class XMLStringFactory

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.
Overrides:
newstr in class XMLStringFactory

emptystr

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

Returns:
An non-null reference to an XMLString that represents "".
Overrides:
emptystr in class XMLStringFactory

Documentation is available at
http://download.oracle.com/docs/cd/E13222_01/wls/docs70

Copyright © 2004 BEA Systems, Inc. All Rights Reserved.
WebLogic Server 7.0 API Reference