Code example for BlockingQueue

Methods: put

0
        if (tag == null) return;
        tag = tag.toLowerCase();
        if ("record".equals(tag) || "document".equals(tag)) {
            //System.out.println("A Title: " + this.surrogate.title()); 
            try { 
                this.surrogates.put(this.surrogate);
            } catch (InterruptedException e) {
                Log.logException(e);
            } finally { 
                //System.out.println("B Title: " + this.surrogate.title()); 
                this.surrogate = null;
                this.buffer.setLength(0);
                this.parsingValue = false;
            } 
        } else if ("element".equals(tag)) {
            this.buffer.setLength(0);
            this.parsingValue = false;
        } else if ("value".equals(tag)) {
            //System.out.println("BUFFER-SIZE=" + buffer.length()); 
            final String value = buffer.toString().trim();
            if (this.elementName != null) {