org.apache.xerces.utils
Class StringPool

java.lang.Object
  |
  +--org.apache.xerces.utils.StringPool

public final class StringPool
extends java.lang.Object

Version:
 

Inner Class Summary
 class StringPool.CharArrayRange
           
static interface StringPool.StringProducer
           
 
Field Summary
static int EMPTY_STRING
           
static int NULL_STRING
          Constants
 
Constructor Summary
StringPool()
           
 
Method Summary
 int addNewSymbol(java.lang.String str, int hashcode)
           
 int addQName(int fullname, int prefix, int localpart)
           
 int addString(java.lang.String str)
           
 int addString(StringPool.StringProducer stringProducer, int offset, int length)
           
 boolean addStringToList(int stringListIndex, int stringIndex)
           
 int addSymbol(int stringIndex)
           
 int addSymbol(java.lang.String str)
           
 int addSymbol(StringPool.StringProducer stringProducer, int offset, int length, int hashcode)
           
 StringPool.CharArrayRange createCharArrayRange()
           
 int createNonMatchingSymbol(int startOffset, int entry, int[] entries, int offset)
           
 boolean equalNames(int stringIndex1, int stringIndex2)
           
 boolean equalQNames(int qname1, int qname2)
           
 void finishStringList(int stringListIndex)
           
 void getCharArrayRange(int symbolIndex, StringPool.CharArrayRange r)
           
 int getDeclaration(int stringIndex)
           
 int getFullNameForQName(int nameIndex)
           
 int getLocalPartForQName(int nameIndex)
           
 int getPrefixForQName(int nameIndex)
           
 SymbolCache getSymbolCache()
           
 int getURIForQName(int nameIndex)
           
 int lookupSymbol(StringPool.StringProducer stringProducer, int offset, int length, int hashcode)
           
 java.lang.String orphanString(int stringIndex)
           
 void releaseString(int stringIndex)
           
 void reset()
           
 void resetShuffleCount()
           
 void setDeclaration(int stringIndex, int decl)
           
 void setURIForQName(int nameIndex, int uriIndex)
           
 int startStringList()
           
 boolean stringInList(int stringListIndex, int stringIndex)
           
 java.lang.String stringListAsString(int stringListIndex)
           
 int stringListLength(int stringListIndex)
           
 java.lang.String toString(int stringIndex)
           
 void updateCacheLine(int symbolIndex, int totalMisses, int length)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NULL_STRING

public static final int NULL_STRING
Constants

EMPTY_STRING

public static final int EMPTY_STRING
Constructor Detail

StringPool

public StringPool()
Method Detail

reset

public void reset()

addString

public int addString(java.lang.String str)

addString

public int addString(StringPool.StringProducer stringProducer,
                     int offset,
                     int length)

getSymbolCache

public SymbolCache getSymbolCache()

resetShuffleCount

public void resetShuffleCount()

updateCacheLine

public void updateCacheLine(int symbolIndex,
                            int totalMisses,
                            int length)

createNonMatchingSymbol

public int createNonMatchingSymbol(int startOffset,
                                   int entry,
                                   int[] entries,
                                   int offset)
                            throws java.lang.Exception

addSymbol

public int addSymbol(java.lang.String str)

addSymbol

public int addSymbol(StringPool.StringProducer stringProducer,
                     int offset,
                     int length,
                     int hashcode)

lookupSymbol

public int lookupSymbol(StringPool.StringProducer stringProducer,
                        int offset,
                        int length,
                        int hashcode)

addNewSymbol

public int addNewSymbol(java.lang.String str,
                        int hashcode)

addSymbol

public int addSymbol(int stringIndex)

setDeclaration

public void setDeclaration(int stringIndex,
                           int decl)

getDeclaration

public int getDeclaration(int stringIndex)

createCharArrayRange

public StringPool.CharArrayRange createCharArrayRange()

getCharArrayRange

public void getCharArrayRange(int symbolIndex,
                              StringPool.CharArrayRange r)

addQName

public int addQName(int fullname,
                    int prefix,
                    int localpart)

getFullNameForQName

public int getFullNameForQName(int nameIndex)

getPrefixForQName

public int getPrefixForQName(int nameIndex)

getLocalPartForQName

public int getLocalPartForQName(int nameIndex)

setURIForQName

public void setURIForQName(int nameIndex,
                           int uriIndex)

getURIForQName

public int getURIForQName(int nameIndex)

equalQNames

public boolean equalQNames(int qname1,
                           int qname2)

equalNames

public boolean equalNames(int stringIndex1,
                          int stringIndex2)

startStringList

public int startStringList()

addStringToList

public boolean addStringToList(int stringListIndex,
                               int stringIndex)

finishStringList

public void finishStringList(int stringListIndex)

stringListLength

public int stringListLength(int stringListIndex)

stringInList

public boolean stringInList(int stringListIndex,
                            int stringIndex)

stringListAsString

public java.lang.String stringListAsString(int stringListIndex)

releaseString

public void releaseString(int stringIndex)

toString

public java.lang.String toString(int stringIndex)

orphanString

public java.lang.String orphanString(int stringIndex)


Copyright © 1999 Apache XML Project. All Rights Reserved.