private void readSheet ( StylesTable styles , ReadOnlySharedStringsTable sharedStringsTable , InputStream sheetInputStream ) throws IOException , ParserConfigurationException , SAXException { SAXParserFactory saxFactory = SAXParserFactory . newInstance ( ) ; XMLReader sheetParser = saxFactory . newSAXParser ( ) . getXMLReader ( ) ; ContentHandler handler = new XSSFSheetXMLHandler ( styles , sharedStringsTable , sheetContentsHandler , true ) ; sheetParser . setContentHandler ( handler ) ; sheetParser . parse ( new InputSource ( sheetInputStream ) ) ; }
Parses the content of one sheet using the specified styles and shared - strings tables .