Code example for CharArrayWriter

Methods: reset

0
 
	public void parse(String inLine) throws SAXException, IOException {
		userid = "";
		password = "";
		commandText = "";
		contents.reset();
 
		StringReader sr = new StringReader(inLine);
		parser.parse(new InputSource(sr), this);
	} 
 
	/** 
	 * Method handles #PCDATA 
	 * @param ch array 
	 * @param start position in array where next has been placed 
	 * @param length int 
	 * 
	 * 
	 */ 
	public void characters(char ch[], int start, int length) {