From d0380e40587bd5ba01f118acffe413a05b243a7e Mon Sep 17 00:00:00 2001 From: Glen Stampoultzis Date: Thu, 20 Jun 2002 12:43:44 +0000 Subject: [PATCH] Minor changes of no consequence. Just checking in because I'm doing a release soon. git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@352710 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/poi/hssf/record/SSTSerializer.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/java/org/apache/poi/hssf/record/SSTSerializer.java b/src/java/org/apache/poi/hssf/record/SSTSerializer.java index 6bf044d85..de0321eab 100644 --- a/src/java/org/apache/poi/hssf/record/SSTSerializer.java +++ b/src/java/org/apache/poi/hssf/record/SSTSerializer.java @@ -126,10 +126,12 @@ class SSTSerializer return retval; } + /** + * This case is chosen when an SST record does not span over to a continue record. + * + */ private void serializeSingleSSTRecord( byte[] data, int offset, int record_length_index ) { - // short data: write one simple SST record - int len = ( (Integer) recordLengths.get( record_length_index++ ) ).intValue(); int recordSize = SSTRecord.SST_RECORD_OVERHEAD + len - SSTRecord.STD_RECORD_OVERHEAD; sstRecordHeader.writeSSTHeader( data, 0 + offset, recordSize ); @@ -137,7 +139,6 @@ class SSTSerializer for ( int k = 0; k < strings.size(); k++ ) { -// UnicodeString unistr = ( (UnicodeString) strings.get( new Integer( k ) ) ); System.arraycopy( getUnicodeString( k ).serialize(), 0, data, pos + offset, getUnicodeString( k ).getRecordSize() ); pos += getUnicodeString( k ).getRecordSize(); }