From 96c48a981c682b69a18ae5b77bfea2e07f4cc53f Mon Sep 17 00:00:00 2001 From: Nick Burch Date: Tue, 6 Jan 2009 18:53:37 +0000 Subject: [PATCH] Improve a few comments git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@732054 13f79535-47bb-0310-9956-ffa450edef68 --- src/scratchpad/src/org/apache/poi/hdgf/HDGFLZW.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/scratchpad/src/org/apache/poi/hdgf/HDGFLZW.java b/src/scratchpad/src/org/apache/poi/hdgf/HDGFLZW.java index 049a768dcc..935cbed153 100644 --- a/src/scratchpad/src/org/apache/poi/hdgf/HDGFLZW.java +++ b/src/scratchpad/src/org/apache/poi/hdgf/HDGFLZW.java @@ -259,6 +259,8 @@ private void outputCompressed(OutputStream res) throws IOException { // 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 @@ private void compress(InputStream src, OutputStream res) throws IOException { 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 -- 2.39.5