Code example for CharArrayWriter

Methods: write

0
	 * @param length int of characters found so far 
	 * @throws SAXException many possible 
	 */ 
	public void characters(char ch[], int start, int length)
		throws SAXException { 
		contents.write(ch, start, length);
	} 
 
	/** Method called by the SAX parser at the </ 
	 * @param uri URI of incoming file 
	 * @param localName String of element's local name 
	 * @param rawName String of element's raw name 
	 * @throws SAXException many possible 
	 */ 
	public void endElement( 
		java.lang.String uri,
		java.lang.String localName,
		java.lang.String rawName)
		throws SAXException { 
 
		String data = contents.toString();