diff options
author | Dominik Stadler <centic@apache.org> | 2016-12-11 21:13:46 +0000 |
---|---|---|
committer | Dominik Stadler <centic@apache.org> | 2016-12-11 21:13:46 +0000 |
commit | 9f68c40e345aabf655c37eb402ad63d5e173e03f (patch) | |
tree | ab579673c1b64727c0d69d9f060935ce9eadf939 /src/examples | |
parent | 37fc8c10a458ae2dd827a8a01ec43f5219522df0 (diff) | |
download | poi-9f68c40e345aabf655c37eb402ad63d5e173e03f.tar.gz poi-9f68c40e345aabf655c37eb402ad63d5e173e03f.zip |
Adjust some missing/incorrec throws and related javadoc
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1773662 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/examples')
-rw-r--r-- | src/examples/src/org/apache/poi/xssf/eventusermodel/XLSX2CSV.java | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/src/examples/src/org/apache/poi/xssf/eventusermodel/XLSX2CSV.java b/src/examples/src/org/apache/poi/xssf/eventusermodel/XLSX2CSV.java index 0f84ce91fe..bd537c1d15 100644 --- a/src/examples/src/org/apache/poi/xssf/eventusermodel/XLSX2CSV.java +++ b/src/examples/src/org/apache/poi/xssf/eventusermodel/XLSX2CSV.java @@ -126,6 +126,7 @@ public class XLSX2CSV { // Number or string? try { + //noinspection ResultOfMethodCallIgnored Double.parseDouble(formattedValue); output.append(formattedValue); } catch (NumberFormatException e) { @@ -173,16 +174,20 @@ public class XLSX2CSV { * Parses and shows the content of one sheet * using the specified styles and shared-strings tables. * - * @param styles - * @param strings - * @param sheetInputStream + * @param styles The table of styles that may be referenced by cells in the sheet + * @param strings The table of strings that may be referenced by cells in the sheet + * @param sheetInputStream The stream to read the sheet-data from. + + * @exception java.io.IOException An IO exception from the parser, + * possibly from a byte stream or character stream + * supplied by the application. + * @throws SAXException if parsing the XML data fails. */ public void processSheet( StylesTable styles, ReadOnlySharedStringsTable strings, SheetContentsHandler sheetHandler, - InputStream sheetInputStream) - throws IOException, ParserConfigurationException, SAXException { + InputStream sheetInputStream) throws IOException, SAXException { DataFormatter formatter = new DataFormatter(); InputSource sheetSource = new InputSource(sheetInputStream); try { @@ -199,13 +204,10 @@ public class XLSX2CSV { /** * Initiates the processing of the XLS workbook file to CSV. * - * @throws IOException - * @throws OpenXML4JException - * @throws ParserConfigurationException - * @throws SAXException + * @throws IOException If reading the data from the package fails. + * @throws SAXException if parsing the XML data fails. */ - public void process() - throws IOException, OpenXML4JException, ParserConfigurationException, SAXException { + public void process() throws IOException, OpenXML4JException, SAXException { ReadOnlySharedStringsTable strings = new ReadOnlySharedStringsTable(this.xlsxPackage); XSSFReader xssfReader = new XSSFReader(this.xlsxPackage); StylesTable styles = xssfReader.getStylesTable(); |