From: Nick Burch Date: Wed, 19 Sep 2007 14:40:44 +0000 (+0000) Subject: Update POIDocument to use POILogger X-Git-Tag: REL_3_0_2_BETA1~40 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=f4d92df6b320add9363f229b4c2a65a5dfc6cdfd;p=poi.git Update POIDocument to use POILogger git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@577317 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/documentation/content/xdocs/changes.xml b/src/documentation/content/xdocs/changes.xml index bac5f0a167..97fce850c2 100644 --- a/src/documentation/content/xdocs/changes.xml +++ b/src/documentation/content/xdocs/changes.xml @@ -36,6 +36,7 @@ + Move POIDocument out of Scratchpad, and update HSSFWorkbook to use it 43399 - [PATCH] - Fix for Cell References for rows > 32678 43410 - [PATCH] - Improved Formula Parser support for numbers and ranges When writing HSLF files out, optionally preserve all OLE2 nodes (default is just the HSLF related nodes) diff --git a/src/documentation/content/xdocs/status.xml b/src/documentation/content/xdocs/status.xml index 9ab70b7fd0..e5cde9195d 100644 --- a/src/documentation/content/xdocs/status.xml +++ b/src/documentation/content/xdocs/status.xml @@ -33,6 +33,7 @@ + Move POIDocument out of Scratchpad, and update HSSFWorkbook to use it 43399 - [PATCH] - Fix for Cell References for rows > 32678 43410 - [PATCH] - Improved Formula Parser support for numbers and ranges When writing HSLF files out, optionally preserve all OLE2 nodes (default is just the HSLF related nodes) diff --git a/src/java/org/apache/poi/POIDocument.java b/src/java/org/apache/poi/POIDocument.java index bc3b78dd21..ece7a3f13d 100644 --- a/src/java/org/apache/poi/POIDocument.java +++ b/src/java/org/apache/poi/POIDocument.java @@ -88,7 +88,7 @@ public abstract class POIDocument { dis = filesystem.createDocumentInputStream(setName); } catch(IOException ie) { // Oh well, doesn't exist - System.err.println("Error getting property set with name " + setName + "\n" + ie); + logger.log(POILogger.WARN, "Error getting property set with name " + setName + "\n" + ie); return null; } @@ -98,10 +98,10 @@ public abstract class POIDocument { return set; } catch(IOException ie) { // Must be corrupt or something like that - System.err.println("Error creating property set with name " + setName + "\n" + ie); + logger.log(POILogger.WARN, "Error creating property set with name " + setName + "\n" + ie); } catch(org.apache.poi.hpsf.HPSFException he) { // Oh well, doesn't exist - System.err.println("Error creating property set with name " + setName + "\n" + he); + logger.log(POILogger.WARN, "Error creating property set with name " + setName + "\n" + he); } return null; }