Code example for StringBufferInputStream

0
		 
			//get a new instance of parser 
			SAXParser sp = spf.newSAXParser();
			 
			//parse the file and also register this class for call backs 
			sp.parse(new StringBufferInputStream("<employee><firstname>Keshav</firstname></employee>"), this);
			 
		}catch(SAXException se) {
			se.printStackTrace();
		}catch(ParserConfigurationException pce) {
			pce.printStackTrace();
		}catch (IOException ie) {
			ie.printStackTrace();
		} 
	} 
 
	/** 
	 * Iterate through the list and print 
	 * the contents 
	 */ 
	private void printData(){