public void processSheet ( StylesTable styles , ReadOnlySharedStringsTable strings , SheetContentsHandler sheetHandler , InputStream sheetInputStream ) throws IOException , ParserConfigurationException , SAXException { DataFormatter formatter = new DataFormatter ( ) ; InputSource sheetSource = new InputSource ( sheetInputStream ) ; try { XMLReader sheetParser = SAXHelper . newXMLReader ( ) ; ContentHandler handler = new XSSFSheetXMLHandler ( styles , null , strings , sheetHandler , formatter , false ) ; sheetParser . setContentHandler ( handler ) ; sheetParser . parse ( sheetSource ) ; } catch ( ParserConfigurationException e ) { throw new RuntimeException ( "SAX parser appears to be broken - " + e . getMessage ( ) ) ; } }
Parses and shows the content of one sheet using the specified styles and shared - strings tables .