| java.lang.Object org.apache.xerces.utils.SymbolCache
SymbolCache | final public class SymbolCache (Code) | | |
Constructor Summary | |
public | SymbolCache() public void dumpCache() {
System.out.println("fSymbolChars.length == "+fSymbolChars.length);
for (int i = 0; i < fSymbolCharsOffset; i++)
System.out.println("fSymbolChars["+i+"] == "+fSymbolChars[i]);
for (int i = 0; i < fCacheLineCount; i++) {
System.out.print("fCacheLines["+i+"] (num records == "+
fCacheLines[i][0]+") == {");
int offset = 1;
for (int j = 0; j < fCacheLines[i][0]; j++) {
System.out.print("{char="+
(new Character((char)fCacheLines[i][offset+CHAR_OFFSET]). |
CACHE_RECORD_SIZE | final public static int CACHE_RECORD_SIZE(Code) | | |
CHAR_OFFSET | final public static int CHAR_OFFSET(Code) | | |
HEAD_INITIAL_CACHE_RECORD_COUNT | final public static int HEAD_INITIAL_CACHE_RECORD_COUNT(Code) | | |
INDEX_OFFSET | final public static int INDEX_OFFSET(Code) | | |
INITIAL_CACHE_RECORD_COUNT | final public static int INITIAL_CACHE_RECORD_COUNT(Code) | | |
NEXT_OFFSET | final public static int NEXT_OFFSET(Code) | | |
fCacheLineCount | public int fCacheLineCount(Code) | | |
fCacheLines | public int[][] fCacheLines(Code) | | |
fSymbolChars | public char[] fSymbolChars(Code) | | |
fSymbolCharsOffset | public int fSymbolCharsOffset(Code) | | |
SymbolCache | public SymbolCache()(Code) | | public void dumpCache() {
System.out.println("fSymbolChars.length == "+fSymbolChars.length);
for (int i = 0; i < fSymbolCharsOffset; i++)
System.out.println("fSymbolChars["+i+"] == "+fSymbolChars[i]);
for (int i = 0; i < fCacheLineCount; i++) {
System.out.print("fCacheLines["+i+"] (num records == "+
fCacheLines[i][0]+") == {");
int offset = 1;
for (int j = 0; j < fCacheLines[i][0]; j++) {
System.out.print("{char="+
(new Character((char)fCacheLines[i][offset+CHAR_OFFSET]).
toString())+
"; idx="+fCacheLines[i][offset+INDEX_OFFSET]+
"; next="+fCacheLines[i][offset+NEXT_OFFSET]+"}");
offset += CACHE_RECORD_SIZE;
}
System.out.println("} - (Actual size == "+fCacheLines[i].length+")");
}
}
|
addSymbolToCache | public int addSymbolToCache(String str, int slen, int symbolHandle)(Code) | | |
createSymbol | public String createSymbol(int symbolHandle, int startOffset, int entry, int[] entries, int offset)(Code) | | |
getSymbolChars | public char[] getSymbolChars()(Code) | | |
reset | public void reset()(Code) | | |
updateCacheLine | public void updateCacheLine(int charsOffset, int totalMisses, int length)(Code) | | |
|
|