Code example for CharArrayWriter

Methods: write

0
        throws SAXException { 
        if (elementToSkip != null) {
            return; 
        } 
        if (len > 0) {
            text.write (buf, offset, len);
        } 
    } 
 
    /* (non-Javadoc) 
     * @see org.xml.sax.ErrorHandler#warning(org.xml.sax.SAXParseException) 
     */ 
    public void warning(SAXParseException e) throws SAXException {
        LOGGER.warn("warning: XML parsing warning: " + e.toString(), e);
    } 
 
    /* (non-Javadoc) 
     * @see org.xml.sax.ErrorHandler#error(org.xml.sax.SAXParseException) 
     */ 
    public void error(SAXParseException e) throws SAXException {
        LOGGER.warn("error: XML parsing error: " + e.toString(), e);