Code example for CharArrayWriter

0
        } 
        return decryptedLinks;
    } 
 
    public class MetalinkSAXHandler extends DefaultHandler {
        private CharArrayWriter text = new CharArrayWriter();
        Attributes atr;
        String path = "";
        private DownloadLink dLink = null;
 
        public MetalinkSAXHandler() { 
        } 
 
        public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException {
            if (qName.equals("file")) {
                /* new file begins */ 
                dLink = new DownloadLink(null, null, null, null, true);
            } 
            path += "." + qName;
            this.atr = attributes;
        }