mirror of https://github.com/apache/poi.git
Fix for big strings
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@353399 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
b77c9c5f45
commit
43f2b5d592
|
@ -425,10 +425,14 @@ class SSTDeserializer
|
|||
int charsRead = calculateCharCount( dataLengthInBytes );
|
||||
LittleEndian.putShort( unicodeStringData, (byte) 0, (short) charsRead );
|
||||
arraycopy( record, 0, unicodeStringData, LittleEndianConsts.SHORT_SIZE, record.length );
|
||||
UnicodeString ucs = new UnicodeString( UnicodeString.sid, (short) unicodeStringData.length, unicodeStringData );
|
||||
UnicodeString ucs = new UnicodeString( UnicodeString.sid, (short) unicodeStringData.length, unicodeStringData, unfinishedString);
|
||||
|
||||
unfinishedString = unfinishedString + ucs.getString();
|
||||
setContinuationCharsRead( charsRead );
|
||||
unfinishedString = ucs.getString();
|
||||
setContinuationCharsRead( getContinuationCharsRead() + charsRead );
|
||||
if (getContinuationCharsRead() == charCount) {
|
||||
Integer integer = new Integer( strings.size() );
|
||||
addToStringTable( strings, integer, ucs );
|
||||
}
|
||||
}
|
||||
|
||||
private boolean stringSpansContinuation( int continuationSizeInBytes )
|
||||
|
|
Loading…
Reference in New Issue