Code example for CharArrayWriter

0
	private String userid;
	private String password;
	private String commandText;
 
	/**     simple string processor    */ 
	protected CharArrayWriter contents = new CharArrayWriter();
 
	/** construct the factory with a xml parser 
	 * @throws Exception an xml parser exception  
	 */ 
 
	public SocketCommandParser() throws Exception { 
		SAXParserFactory spf = SAXParserFactory.newInstance();
		parser = spf.newSAXParser();
 
	} 
 
	public void parse(String inLine) throws SAXException, IOException {
		userid = "";
		password = "";
		commandText = "";