Code example for InputSource

Methods: setByteStream

0
	 
 
	DASAlignmentXMLResponseParser cont_handle = new DASAlignmentXMLResponseParser() ;
	xmlreader.setContentHandler(cont_handle);
	xmlreader.setErrorHandler(new org.xml.sax.helpers.DefaultHandler());
	InputSource insource = new InputSource() ;
	insource.setByteStream(inStream);
 
	//System.out.println("DASAlignmentCall parse XML response ..."); 
	xmlreader.parse(insource);
	//System.out.println("DASAlignmentCall parse XML response done."); 
 
	return cont_handle.getAlignments();
	 
    } 
     
}