Hello,
 
a quick question about POI's use of System.err vs POILogger.
 
I am opening excel files w/ the following code:
 
fileStream = new FileInputStream(pFilepath);
POIFSFileSystem fs = new POIFSFileSystem(fileStream);
HSSFWorkbook wb = new HSSFWorkbook(fs);
 
When creating HSSFWorkbook w/ certain types of excel files (typically
ones using Data Grouping) many exceptions are printed out using
System.err.println().  My concern is not about the exceptions but rather
if the exceptions should be logged using the POILogger rather than sent
to stderr.
 
Is a POI bug?  Shouldn't all exceptions be logged using the POILogger
rather than using the System.err.println() ?
 
If this is not a POI bug does anyone know of any workarounds (short of a
patch) for this?
 
There are two areas in the POI code base that are of concern:
the classes org.apache.poi.hssf.record.NameRecord and
org.apache.poi.hssf.record.FormulaRecord both use System.err.println to
output exceptions.
 
If anyone could let me know if the System.err.println() usage is
intentional or if is an area that needs to be refactored to use the
POILogger I would greatly appreciate it.
 
regards, 
david

Reply via email to