poi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From n...@apache.org
Subject svn commit: r1126674 - /poi/trunk/src/java/org/apache/poi/hssf/record/HyperlinkRecord.java
Date Mon, 23 May 2011 19:25:30 GMT
Author: nick
Date: Mon May 23 19:25:30 2011
New Revision: 1126674

URL: http://svn.apache.org/viewvc?rev=1126674&view=rev
Log:
Avoid a System.out call, replace with logging

Modified:
    poi/trunk/src/java/org/apache/poi/hssf/record/HyperlinkRecord.java

Modified: poi/trunk/src/java/org/apache/poi/hssf/record/HyperlinkRecord.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/java/org/apache/poi/hssf/record/HyperlinkRecord.java?rev=1126674&r1=1126673&r2=1126674&view=diff
==============================================================================
--- poi/trunk/src/java/org/apache/poi/hssf/record/HyperlinkRecord.java (original)
+++ poi/trunk/src/java/org/apache/poi/hssf/record/HyperlinkRecord.java Mon May 23 19:25:30
2011
@@ -27,6 +27,8 @@ import org.apache.poi.util.HexRead;
 import org.apache.poi.util.LittleEndianByteArrayInputStream;
 import org.apache.poi.util.LittleEndianInput;
 import org.apache.poi.util.LittleEndianOutput;
+import org.apache.poi.util.POILogFactory;
+import org.apache.poi.util.POILogger;
 import org.apache.poi.util.StringUtil;
 
 /**
@@ -39,6 +41,7 @@ import org.apache.poi.util.StringUtil;
  */
 public final class HyperlinkRecord extends StandardRecord {
     public final static short sid = 0x01B8;
+    private POILogger logger = POILogFactory.getLogger(getClass());
 
     static final class GUID {
 		/*
@@ -525,7 +528,10 @@ public final class HyperlinkRecord exten
         }
 
         if (in.remaining() > 0) {
-            System.out.println(HexDump.toHex(in.readRemainder()));
+           logger.log(POILogger.WARN, 
+                 "Hyperlink data remains: " + in.remaining() +
+                 " : " +HexDump.toHex(in.readRemainder())
+           );
         }
     }
 



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


Mime
View raw message