Code example for StringReader

0
 
    public boolean parse(final String string) throws IOException {
        if (null == string)
            return false; 
        try { 
            this.parser.parse(new StringReader(string), BASE_URI);
            return true; 
        } catch (Exception e) {
            this.logger.error(e.getMessage());
            return false; 
        } 
    } 
 
    public FaunusElement next() { 
        if (this.queue.isEmpty())
            return null; 
        else 
            return this.queue.remove();
    } 
 
    public boolean hasNext() {