Code example for CharArrayWriter

Methods: write

0
	 * 
	 * 
	 */ 
	public void characters(char ch[], int start, int length) {
 
		contents.write(ch, start, length);
 
	} 
 
	public void startElement(String uri, String localName, String qName,
			Attributes attributes) throws SAXException {
 
		if (qName.equals("command")) {
			userid = attributes.getValue("id");
			password = attributes.getValue("password");
		} 
	} 
 
	public String getCommandText() {
		return commandText;
	}