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
dc44a8bd39
commit
f7a6f8320c
@ -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
Block a user