poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 58883] Numbers after the decimal point are being cut (rounded) in version 3.13, but not in version 3.10.1 (BWC break)
Date Mon, 18 Jan 2016 09:30:35 GMT
https://bz.apache.org/bugzilla/show_bug.cgi?id=58883

--- Comment #2 from shahar@datorama.com ---
What i'm doing is reading the cells and writing them to a csv file:

try(Reader reader = new InputStreamReader(sheetInputStream,"UTF-8")){
            InputSource sheetSource = new InputSource(reader);
            sheetSource.setEncoding("UTF-8");
            SAXParserFactory saxFactory = SAXParserFactory.newInstance();
            SAXParser saxParser = saxFactory.newSAXParser();
            XMLReader sheetParser = saxParser.getXMLReader();
            // ContentHandler handler = new MyXSSFSheetHandler(styles, strings,
            // this.minColumns, this.output);

            DataFormatter format = new MyDataFormatter();
            SheetContentsHandler blof = new
MySheetContentsHandler(this.printStream, rowsLimit);
            ContentHandler handler = new XSSFSheetXMLHandler(styles, strings,
blof, format, false);

            sheetParser.setContentHandler(handler);
            sheetParser.parse(sheetSource);
            }

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


Mime
View raw message