/** * Add a new entry with the specified keys, value and hash code to * the specified bucket. It is the responsibility of this * method to resize the table if appropriate. * */ private void addEntry(int hash, String nsUri, String localName, V value, int bucketIndex) { Entry<V> e = table[bucketIndex]; table[bucketIndex] = new Entry<V>(hash, nsUri, localName, value, e); if (size++ >= threshold) resize(2 * table.length); }
public ReadAllStream() { memStream = new MemoryStream(); fileStream = new FileStream(); }
/** * Reset this Namespace support object for reuse. * * <p>It is necessary to invoke this method before reusing the * Namespace support object for a new session.</p> */ public void reset() { contexts = new Context[32]; contextPos = 0; contexts[contextPos] = currentContext = new Context(); currentContext.declarePrefix("xml", XMLNS); }
/** * Populates the Map that holds operation name as key and {@link WSDLBoundOperation} as the value. * * @param opName Must be non-null * @param ptOp Must be non-null * @throws NullPointerException if either opName or ptOp is null */ public void put(QName opName, EditableWSDLBoundOperation ptOp) { bindingOperations.put(opName,ptOp); }
private ServiceFinder(Class<T> service, ClassLoader loader, Component component) { this.serviceClass = service; this.classLoader = loader; this.component = getComponentEx(component); }
/** * Create the root-level Namespace context. */ Context() { copyTables(); } // PGB May 6 2002 added copy constructor
@Override public int read() throws IOException { if (!fetch()) { return -1; } return (head.buf[curOff++] & 0xff); }
/** * Add a new entry with the specified keys, value and hash code to * the specified bucket. It is the responsibility of this * method to resize the table if appropriate. * */ private void addEntry(int hash, String nsUri, String localName, V value, int bucketIndex) { Entry<V> e = table[bucketIndex]; table[bucketIndex] = new Entry<V>(hash, nsUri, localName, value, e); if (size++ >= threshold) resize(2 * table.length); }
public ReadAllStream() { memStream = new MemoryStream(); fileStream = new FileStream(); }
/** * Add a new entry with the specified keys, value and hash code to * the specified bucket. It is the responsibility of this * method to resize the table if appropriate. * */ private void addEntry(int hash, String nsUri, String localName, V value, int bucketIndex) { Entry<V> e = table[bucketIndex]; table[bucketIndex] = new Entry<V>(hash, nsUri, localName, value, e); if (size++ >= threshold) resize(2 * table.length); }