Code example for CharArrayWriter

	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 = "";
Connect your IDE to all the code out there  Get Codota for Java