jxl.demo
Class BiffDump
java.lang.Object
|
+--jxl.demo.BiffDump
- class BiffDump
- extends java.lang.Object
Generates a biff dump of the specified excel file
Constructor Summary |
BiffDump(java.io.File file,
java.io.OutputStream os)
Constructor |
Method Summary |
private void |
buildNameHash()
Builds the hashmap of record names |
private void |
dump()
Dumps out the contents of the excel file |
private void |
writeByte(byte val,
java.lang.StringBuffer buf)
Writes the string passed in as a minimum of four digits |
private boolean |
writeRecord(Record r)
Writes out the biff record |
private void |
writeSixDigitValue(int pos,
java.lang.StringBuffer buf)
Writes the string passed in as a minimum of four digits |
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
writer
private java.io.BufferedWriter writer
reader
private BiffRecordReader reader
recordNames
private java.util.HashMap recordNames
xfIndex
private int xfIndex
fontIndex
private int fontIndex
bofs
private int bofs
bytesPerLine
private static final int bytesPerLine
BiffDump
public BiffDump(java.io.File file,
java.io.OutputStream os)
throws java.io.IOException,
BiffException
- Constructor
- Parameters:
file
- the fileos
- the output stream- Throws:
java.io.IOException
- BiffException
-
buildNameHash
private void buildNameHash()
- Builds the hashmap of record names
dump
private void dump()
throws java.io.IOException
- Dumps out the contents of the excel file
writeRecord
private boolean writeRecord(Record r)
throws java.io.IOException
- Writes out the biff record
- Parameters:
r
- - Throws:
java.io.IOException
- if an error occurs
writeSixDigitValue
private void writeSixDigitValue(int pos,
java.lang.StringBuffer buf)
- Writes the string passed in as a minimum of four digits
writeByte
private void writeByte(byte val,
java.lang.StringBuffer buf)
- Writes the string passed in as a minimum of four digits