From: Glen Stampoultzis Date: Thu, 20 Jun 2002 12:43:44 +0000 (+0000) Subject: Minor changes of no consequence. Just checking in because I'm doing a release soon. X-Git-Tag: REL_1_10~299 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=41b2ae099ba8917f53683f3f608f908361c1f640;p=poi.git 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 --- diff --git a/src/java/org/apache/poi/hssf/record/SSTSerializer.java b/src/java/org/apache/poi/hssf/record/SSTSerializer.java index 6bf044d85e..de0321eab5 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(); }