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


Field Summary
private static int bytesPerLine
           
private  BiffRecordReader reader
           
private  java.util.HashMap recordNames
           
private  java.io.BufferedWriter writer
           
 
Constructor Summary
BiffDump(java.io.File file, java.io.OutputStream os)
           
 
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  void 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
 

Field Detail

writer

private java.io.BufferedWriter writer

reader

private BiffRecordReader reader

recordNames

private java.util.HashMap recordNames

bytesPerLine

private static final int bytesPerLine
Constructor Detail

BiffDump

public BiffDump(java.io.File file,
                java.io.OutputStream os)
         throws java.io.IOException,
                BiffException
Method Detail

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 void writeRecord(Record r)
                  throws java.io.IOException
Writes out the biff record

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