Code example for Deque

Methods: isEmpty, peek

0
        indexes.pop();
    } 
 
    @Override 
    public void characters(char[] ch, int start, int length) throws SAXException {
        assert (!resources.isEmpty());
        final String string = new String(ch, start, length);
        if (string.matches("\\s*")) {
            return; 
        } 
        if (language != null) {
            resources.peek().addTriple(rdfFactory.newURIRef(URI.create(valueProperty())), rdfFactory.newLiteral(string, language));
        } else { 
            resources.peek().addTriple(rdfFactory.newURIRef(URI.create(valueProperty())), rdfFactory.newLiteral(string));
        } 
    } 
 
 
    /** 
     * Get the document as RDF 
     *