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 
			if(content!=null && !content.getValue().equals(""))
			sp.parse(new StringBufferInputStream(content.getValue()), this);
			status=true;
			 
		}catch(SAXException se) {
			se.printStackTrace();status=false;
		}catch(ParserConfigurationException pce) {
			pce.printStackTrace();status=false;
		}catch (IOException ie) {
			ie.printStackTrace();status=false;
		} 
	} 
	 
 
@Override 
public void startElement(String uri, String localName, String qName,
		Attributes attributes) throws SAXException {