/** * Constructs a new entry from the specified symbol information and * next entry reference. */ public SREntry(String internedSymbol, char[] ch, int offset, int length, SREntry next, int bucket, ReferenceQueue q) { super(new SREntryData(internedSymbol, ch, offset, length), q); initialize(next, bucket); }
/** * Randomly selects a new hash function and reorganizes the table view * in order to more evenly distribute its entries. This method is called * automatically when the number of attributes in one bucket exceeds * MAX_HASH_COLLISIONS. */ private void rebalanceTableView(final int count) { if (fHashMultipliers == null) { fHashMultipliers = new int[MULTIPLIERS_SIZE + 1]; } PrimeNumberSequenceGenerator.generateSequence(fHashMultipliers); prepareAndPopulateTableView(count); }
/** * Randomly selects a new hash function and reorganizes this SymbolHash * in order to more evenly distribute its entries across the table. This * method is called automatically when the number keys in one of the * SymbolHash's buckets exceeds MAX_HASH_COLLISIONS. */ protected void rebalance() { if (fHashMultipliers == null) { fHashMultipliers = new int[MULTIPLIERS_SIZE]; } PrimeNumberSequenceGenerator.generateSequence(fHashMultipliers); rehashCommon(fBuckets.length); }
private void initSerializer(XMLSerializer ser) { ser.fNSBinder = new NamespaceSupport(); ser.fLocalNSBinder = new NamespaceSupport(); ser.fSymbolTable = new SymbolTable(); }
/** Default constructor. */ public CachingParserPool() { this(new SymbolTable(), new XMLGrammarPoolImpl()); } // <init>()
/** Constructs a string buffer from the specified character array. */ public XMLStringBuffer(char[] ch, int offset, int length) { this(length); append(ch, offset, length); } // <init>(char[],int,int)
if (length > 0) { QName aqname = new QName(); XMLAttributes newattrs = new XMLAttributesImpl(); for (int i = 0; i < length; i++) { attributes.getName(i, aqname);
/** Returns an empty resource identifier. */ protected final XMLResourceIdentifier resourceId() { /***/ fResourceId.clear(); return fResourceId; /*** // NOTE: Unfortunately, the Xerces DOM parser classes expect a // non-null resource identifier object to be passed to // startGeneralEntity. -Ac return null; /***/ } // resourceId():XMLResourceIdentifier
/** * Randomly selects a new hash function and reorganizes this SymbolTable * in order to more evenly distribute its entries across the table. This * method is called automatically when the number keys in one of the * SymbolTable's buckets exceeds the given collision threshold. */ protected void rebalance() { if (fHashMultipliers == null) { fHashMultipliers = new int[MULTIPLIERS_SIZE]; } PrimeNumberSequenceGenerator.generateSequence(fHashMultipliers); rehashCommon(fBuckets.length); }
/** * Randomly selects a new hash function and reorganizes this SymbolTable * in order to more evenly distribute its entries across the table. This * method is called automatically when the number keys in one of the * SymbolTable's buckets exceeds the given collision threshold. */ protected void rebalance() { if (fHashMultipliers == null) { fHashMultipliers = new int[MULTIPLIERS_SIZE]; } PrimeNumberSequenceGenerator.generateSequence(fHashMultipliers); rehashCommon(fBuckets.length); }
/** * Randomly selects a new hash function and reorganizes the table view * in order to more evenly distribute its entries. This method is called * automatically when the number of attributes in one bucket exceeds * MAX_HASH_COLLISIONS. */ private void rebalanceTableViewNS(final int count) { if (fHashMultipliers == null) { fHashMultipliers = new int[MULTIPLIERS_SIZE + 1]; } PrimeNumberSequenceGenerator.generateSequence(fHashMultipliers); prepareAndPopulateTableViewNS(count); }
/** * get all built-in simple types, which are stored in a hashtable keyed by * the name * * @return a hashtable which contains all built-in simple types */ public SymbolHash getBuiltInTypes() { return (SymbolHash)fBuiltInTypes.makeClone(); }
/** * get one global type */ public final XSTypeDefinition getGlobalTypeDecl(String declName) { return(XSTypeDefinition)fGlobalTypeDecls.get(declName); }
/** * Returns true if the specified character is a valid XML character * as per the rules of XML 1.1. * * @param ch The character to check. */ protected boolean isValid(int ch) { return XML11Char.isXML11Valid(ch); } }
/** Resets the XPath matcher stack. */ public void clear() { for (int i = 0; i < fMatchersCount; i++) { fMatchers[i] = null; } fMatchersCount = 0; fContextStack.clear(); } // clear()
/** * append * * @param s */ public void append(XMLString s) { append(s.ch, s.offset, s.length); } // append(XMLString)
/** * <p>Clears the values.</p> */ public void clear() { super.clear(); fEntityName = null; } // clear()
/** * Constructs a new entry from the specified symbol and next entry * reference. */ public SREntry(String internedSymbol, SREntry next, int bucket, ReferenceQueue q) { super(new SREntryData(internedSymbol), q); initialize(next, bucket); }
private void init() { fEntityScanner = null; // initialize vars fEntityDepth = 0; fReportEntity = true; fResourceIdentifier.clear(); }