poi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From n...@apache.org
Subject svn commit: r732054 - /poi/trunk/src/scratchpad/src/org/apache/poi/hdgf/HDGFLZW.java
Date Tue, 06 Jan 2009 18:53:37 GMT
Author: nick
Date: Tue Jan  6 10:53:37 2009
New Revision: 732054

URL: http://svn.apache.org/viewvc?rev=732054&view=rev
Log:
Improve a few comments

Modified:
    poi/trunk/src/scratchpad/src/org/apache/poi/hdgf/HDGFLZW.java

Modified: poi/trunk/src/scratchpad/src/org/apache/poi/hdgf/HDGFLZW.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/src/org/apache/poi/hdgf/HDGFLZW.java?rev=732054&r1=732053&r2=732054&view=diff
==============================================================================
--- poi/trunk/src/scratchpad/src/org/apache/poi/hdgf/HDGFLZW.java (original)
+++ poi/trunk/src/scratchpad/src/org/apache/poi/hdgf/HDGFLZW.java Tue Jan  6 10:53:37 2009
@@ -259,6 +259,8 @@
 	// Increment the mask bit count, we've done another code
 	maskBitsSet++;
 	// Add the length+code to the buffer
+	// (The position is the first 12 bits, the
+	//  length is the last 4 bits)
 	// TODO
 	posOut += 2;
 	
@@ -351,8 +353,11 @@
 			continue;
 		}
 		
-		// If there was something in rawCode before, then we
-		//  need to output that
+		// If we get here, then the rawCode + this byte weren't
+		// found in the dictionary
+		
+		// If there was something in rawCode before, then that was
+		// found in the dictionary, so output that compressed
 		rawCodeLen--;
 		if(rawCodeLen > 0) {
 			// Output the old rawCode



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


Mime
View raw message