* Character width is defined as the maximum digit width
- * of the numbers
* Character width is defined as the maximum digit width
- * of the numbers
* Character width is defined as the maximum digit width
- * of the numbers
* Character width is defined as the maximum digit width
- * of the numbers 0, 1, 2, … 9
as rendered
+ * of the numbers 0, 1, 2, ... 9
as rendered
* using the default font (first font in the workbook).
*
* Unless you are using a very special font, the default character is '0' (zero),
diff --git a/src/java/org/apache/poi/poifs/storage/BlockAllocationTableReader.java b/src/java/org/apache/poi/poifs/storage/BlockAllocationTableReader.java
index 0d1b86dd4..5de628557 100644
--- a/src/java/org/apache/poi/poifs/storage/BlockAllocationTableReader.java
+++ b/src/java/org/apache/poi/poifs/storage/BlockAllocationTableReader.java
@@ -23,9 +23,7 @@ import java.util.*;
import org.apache.poi.poifs.common.POIFSBigBlockSize;
import org.apache.poi.poifs.common.POIFSConstants;
-import org.apache.poi.util.IntList;
-import org.apache.poi.util.LittleEndian;
-import org.apache.poi.util.LittleEndianConsts;
+import org.apache.poi.util.*;
/**
* This class manages and creates the Block Allocation Table, which is
@@ -43,7 +41,8 @@ import org.apache.poi.util.LittleEndianConsts;
* @author Marc Johnson (mjohnson at apache dot org)
*/
public final class BlockAllocationTableReader {
-
+ private static final POILogger _logger = POILogFactory.getLogger(BlockAllocationTableReader.class);
+
/**
* Maximum number size (in blocks) of the allocation table as supported by
* POI.
@@ -227,12 +226,12 @@ public final class BlockAllocationTableReader {
} catch(IOException e) {
if(currentBlock == headerPropertiesStartBlock) {
// Special case where things are in the wrong order
- System.err.println("Warning, header block comes after data blocks in POIFS block listing");
+ _logger.log(POILogger.WARN, "Warning, header block comes after data blocks in POIFS block listing");
currentBlock = POIFSConstants.END_OF_CHAIN;
} else if(currentBlock == 0 && firstPass) {
// Special case where the termination isn't done right
// on an empty set
- System.err.println("Warning, incorrectly terminated empty data blocks in POIFS block listing (should end at -2, ended at 0)");
+ _logger.log(POILogger.WARN, "Warning, incorrectly terminated empty data blocks in POIFS block listing (should end at -2, ended at 0)");
currentBlock = POIFSConstants.END_OF_CHAIN;
} else {
// Ripple up
diff --git a/src/java/org/apache/poi/ss/usermodel/Sheet.java b/src/java/org/apache/poi/ss/usermodel/Sheet.java
index 4b82c08c8..3532c2097 100644
--- a/src/java/org/apache/poi/ss/usermodel/Sheet.java
+++ b/src/java/org/apache/poi/ss/usermodel/Sheet.java
@@ -127,7 +127,7 @@ public interface Sheet extends Iterable0, 1, 2, … 9
as rendered
+ * of the numbers 0, 1, 2, ... 9
as rendered
* using the default font (first font in the workbook).
*
* Unless you are using a very special font, the default character is '0' (zero),
@@ -167,7 +167,7 @@ public interface Sheet extends Iterable0, 1, 2, … 9
as rendered
+ * of the numbers 0, 1, 2, ... 9
as rendered
* using the default font (first font in the workbook)
* 0, 1, 2, … 9
as rendered
+ * of the numbers 0, 1, 2, ... 9
as rendered
* using the default font (first font in the workbook).
*
* Unless you are using a very special font, the default character is '0' (zero),
diff --git a/src/ooxml/testcases/org/apache/poi/TestPOIXMLDocument.java b/src/ooxml/testcases/org/apache/poi/TestPOIXMLDocument.java
index e27708b1c..bba2f5bd1 100644
--- a/src/ooxml/testcases/org/apache/poi/TestPOIXMLDocument.java
+++ b/src/ooxml/testcases/org/apache/poi/TestPOIXMLDocument.java
@@ -148,7 +148,7 @@ public final class TestPOIXMLDocument extends TestCase {
doc.parse(new TestFactory());
for(POIXMLDocumentPart rel : doc.getRelations()){
- System.out.println(rel);
+ //TODO finish me
}
}
diff --git a/src/scratchpad/src/org/apache/poi/hwpf/model/FontTable.java b/src/scratchpad/src/org/apache/poi/hwpf/model/FontTable.java
index 2073be4bf..7a2f29475 100644
--- a/src/scratchpad/src/org/apache/poi/hwpf/model/FontTable.java
+++ b/src/scratchpad/src/org/apache/poi/hwpf/model/FontTable.java
@@ -21,6 +21,8 @@ import java.io.IOException;
import org.apache.poi.hwpf.model.io.HWPFFileSystem;
import org.apache.poi.hwpf.model.io.HWPFOutputStream;
import org.apache.poi.util.LittleEndian;
+import org.apache.poi.util.POILogFactory;
+import org.apache.poi.util.POILogger;
/**
* FontTable or in MS terminology sttbfffn is a common data structure written in all
@@ -32,6 +34,7 @@ import org.apache.poi.util.LittleEndian;
*/
public final class FontTable
{
+ private final static POILogger _logger = POILogFactory.getLogger(FontTable.class);
private short _stringCount;// how many strings are included in the string table
private short _extraDataSz;// size in bytes of the extra data
@@ -86,7 +89,7 @@ public final class FontTable
{
if(chpFtc >= _stringCount)
{
- System.out.println("Mismatch in chpFtc with stringCount");
+ _logger.log(POILogger.INFO, "Mismatch in chpFtc with stringCount");
return null;
}
@@ -97,7 +100,7 @@ public final class FontTable
{
if(chpFtc >= _stringCount)
{
- System.out.println("Mismatch in chpFtc with stringCount");
+ _logger.log(POILogger.INFO, "Mismatch in chpFtc with stringCount");
return null;
}
diff --git a/src/scratchpad/src/org/apache/poi/hwpf/model/PropertyNode.java b/src/scratchpad/src/org/apache/poi/hwpf/model/PropertyNode.java
index c9b5fb9a7..e3338fd61 100644
--- a/src/scratchpad/src/org/apache/poi/hwpf/model/PropertyNode.java
+++ b/src/scratchpad/src/org/apache/poi/hwpf/model/PropertyNode.java
@@ -17,6 +17,9 @@
package org.apache.poi.hwpf.model;
+import org.apache.poi.util.POILogFactory;
+import org.apache.poi.util.POILogger;
+
import java.util.Arrays;
/**
@@ -30,6 +33,7 @@ import java.util.Arrays;
*/
public abstract class PropertyNode implements Comparable, Cloneable
{
+ private final static POILogger _logger = POILogFactory.getLogger(PropertyNode.class);
protected Object _buf;
/** The start, in characters */
private int _cpStart;
@@ -49,7 +53,7 @@ public abstract class PropertyNode implements Comparable, Cloneable
_buf = buf;
if(_cpStart < 0) {
- System.err.println("A property claimed to start before zero, at " + _cpStart + "! Resetting it to zero, and hoping for the best");
+ _logger.log(POILogger.WARN, "A property claimed to start before zero, at " + _cpStart + "! Resetting it to zero, and hoping for the best");
_cpStart = 0;
}
}
diff --git a/src/scratchpad/src/org/apache/poi/hwpf/model/SectionTable.java b/src/scratchpad/src/org/apache/poi/hwpf/model/SectionTable.java
index 987e49ac8..8607b2109 100644
--- a/src/scratchpad/src/org/apache/poi/hwpf/model/SectionTable.java
+++ b/src/scratchpad/src/org/apache/poi/hwpf/model/SectionTable.java
@@ -23,12 +23,15 @@ import java.util.List;
import org.apache.poi.util.LittleEndian;
import org.apache.poi.hwpf.model.io.*;
+import org.apache.poi.util.POILogFactory;
+import org.apache.poi.util.POILogger;
/**
* @author Ryan Ackley
*/
public class SectionTable
{
+ private final static POILogger _logger = POILogFactory.getLogger(SectionTable.class);
private static final int SED_SIZE = 12;
protected ArrayList