ASF Bugzilla – Attachment 4502 Details for
Bug 15062
[PATCH] hssf won't parse sheets bigger than 32 rows for certain sheets
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch file to add string handling
patch.txt (text/plain), 2.18 KB, created by
Anthony Johnson
on 2003-01-21 15:04:50 UTC
(
hide
)
Description:
patch file to add string handling
Filename:
MIME Type:
Creator:
Anthony Johnson
Created:
2003-01-21 15:04:50 UTC
Size:
2.18 KB
patch
obsolete
>Index: RowRecordsAggregate.java >=================================================================== >RCS file: /home/cvspublic/jakarta-poi/src/java/org/apache/poi/hssf/record/aggregates/RowRecordsAggregate.java,v >retrieving revision 1.4 >diff -u -r1.4 RowRecordsAggregate.java >--- RowRecordsAggregate.java 5 Sep 2002 00:26:26 -0000 1.4 >+++ RowRecordsAggregate.java 21 Jan 2003 14:47:18 -0000 >@@ -55,15 +55,17 @@ > > package org.apache.poi.hssf.record.aggregates; > >+import java.util.Iterator; >+import java.util.List; >+import java.util.Map; >+import java.util.TreeMap; >+ >+import org.apache.poi.hssf.record.LabelSSTRecord; > import org.apache.poi.hssf.record.Record; > import org.apache.poi.hssf.record.RowRecord; >+import org.apache.poi.hssf.record.StringRecord; > import org.apache.poi.hssf.record.UnknownRecord; > >-import java.util.Map; >-import java.util.TreeMap; >-import java.util.Iterator; >-import java.util.List; >- > /** > * > * @author andy >@@ -138,18 +140,31 @@ > public int construct(int offset, List records) > { > int k = 0; >+ //System.out.println("Constructing rows:" + records.size()); > > for (k = offset; k < records.size(); k++) > { > Record rec = ( Record ) records.get(k); > >- if (!rec.isInValueSection() && !(rec instanceof UnknownRecord)) >+ // System.out.println("Record is of type: " + rec.getClass()); >+ if (rec instanceof LabelSSTRecord) { >+ LabelSSTRecord new_name = (LabelSSTRecord) rec; >+ //System.out.println("Row for LabellSST: " + new_name.getRow()); >+ } >+ >+ if (rec instanceof StringRecord == false && !rec.isInValueSection() && !(rec instanceof UnknownRecord)) > { >+ //System.out.println("Record is of type: " + rec.getClass()); >+ // StringRecord r = (StringRecord)rec; >+ // System.out.println("String:" + r.getString()); > break; > } > if (rec.getSid() == RowRecord.sid) > { > insertRow(( RowRecord ) rec); >+ RowRecord row = (RowRecord)rec; >+ // System.out.println("Row:" + row.getRowNumber()); >+ > } > } > return k; >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 15062
:
4050
|
4051
|
4393
| 4502 |
5833