Tidy up.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@352810 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
54018b5b18
commit
e53e8b8894
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
/* ====================================================================
|
/* ====================================================================
|
||||||
* The Apache Software License, Version 1.1
|
* The Apache Software License, Version 1.1
|
||||||
*
|
*
|
||||||
@ -55,13 +54,8 @@
|
|||||||
|
|
||||||
package org.apache.poi.hssf.record;
|
package org.apache.poi.hssf.record;
|
||||||
|
|
||||||
import java.io.*;
|
|
||||||
import java.io.UnsupportedEncodingException;
|
|
||||||
|
|
||||||
import org.apache.poi.util.BinaryTree;
|
|
||||||
import org.apache.poi.util.LittleEndian;
|
import org.apache.poi.util.LittleEndian;
|
||||||
import org.apache.poi.util.StringUtil;
|
import org.apache.poi.util.StringUtil;
|
||||||
import sun.awt.image.ByteInterleavedRaster;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Title: Bound Sheet Record (aka BundleSheet) <P>
|
* Title: Bound Sheet Record (aka BundleSheet) <P>
|
||||||
@ -142,10 +136,12 @@ public class BoundSheetRecord
|
|||||||
field_4_compressed_unicode_flag = data[7 + offset]; // unicode
|
field_4_compressed_unicode_flag = data[7 + offset]; // unicode
|
||||||
|
|
||||||
int nameLength = LittleEndian.ubyteToInt( field_3_sheetname_length );
|
int nameLength = LittleEndian.ubyteToInt( field_3_sheetname_length );
|
||||||
if ( ( field_4_compressed_unicode_flag & 0x01 ) == 1 ) {
|
if ( ( field_4_compressed_unicode_flag & 0x01 ) == 1 )
|
||||||
|
{
|
||||||
field_5_sheetname = StringUtil.getFromUnicodeHigh( data, 8 + offset, nameLength );
|
field_5_sheetname = StringUtil.getFromUnicodeHigh( data, 8 + offset, nameLength );
|
||||||
}
|
}
|
||||||
else {
|
else
|
||||||
|
{
|
||||||
field_5_sheetname = new String( data, 8 + offset, nameLength );
|
field_5_sheetname = new String( data, 8 + offset, nameLength );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -335,7 +331,7 @@ public class BoundSheetRecord
|
|||||||
|
|
||||||
public int getRecordSize()
|
public int getRecordSize()
|
||||||
{
|
{
|
||||||
// return 30;
|
// Includes sid length + size length
|
||||||
return 12 + getRawSheetnameLength();
|
return 12 + getRawSheetnameLength();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user