jet.report.xls
Class Format

java.lang.Object
  extended by jet.report.xls.Biff
      extended by jet.report.xls.Format
All Implemented Interfaces:
jet.report.xls.DataConstants

public class Format
extends jet.report.xls.Biff

Format is abbreviation of Number Format Figure 2-2. Format record. | Record Format | Record Body Byte | 0 1 2 3 | 0 1 2 3 .... -------------------------------------------- Contents | 1e | 04 | XX | XX | XX | XX | XX | XX |... -------------------------------------------- | opcode | length | ifmt | cch| rgch | | | | | The first two bytes, arranged with the low byte first, show that the opcode for Format is 0x41e. The second two bytes indicate that the record body is more than 3 bytes long. The first two bytes of the body are format index code .The next one byte of the body is length of the Format string .The last bytes of the body are Number Format string A Format class extends Biff class.


Field Summary
 
Fields inherited from class jet.report.xls.Biff
AI, AREA, AREAFORMAT, ATTACHEDLABEL, AXCEXT, AXESUSED, AXIS, AXISLINEFORMAT, AXISPARENT, BACKUP, BAR, BEGIN, BFONT, BLANK, BOF, BOOKBOOL, BOOLERR, BOPPOP, BOTTOMMARGIN, BOUNDSHEET, CALCCOUNT, CALCMODE, CATERRANGE, CHART, CHART3D, CHARTDATALABELEXT, CHARTFORMAT, CHARTLINE, CODEPAGE, COLINFO, CONTINUE, COUNTRY, DATAFORMAT, DATE1904, DBCELL, DCON, DCONNAME, DCONREF, DEFCOLWIDTH, DEFROWHEIGHT, DEFTEXT, DELTA, DIMENSIONS, DROPBAR, DSF, END, EOF, EXTERNCOUNT, EXTERNSHEET, EXTSST, FBI, FILEPASS, FNGROUPCOUNT, FONTX, FOOTER, FORMAT, FORMULA, FRAME, FTCF, FTCMO, FTEND, FTPIOGRBIT, GELFRAME, GRIDSET, GUTS, HCENTER, HEADER, HIDEOBJ, HLINK, HORIZONTALPAGEBREAKS, IFMT, INDEX, INTEGER, INTERFACEEND, INTERFACEHDR, ITERATION, LABEL, LABELSST, LEFTMARGIN, LEGEND, LEGENDDXN, LINE, LINEFORMAT, MARKERFORMAT, MERGECELLS, MMS, MSODRAWING, MSODRAWINGGROUP, MSODRAWINGSELECTION, MSODRAWINGUNKNOWN, NAME, NOTE, NUMBER, OBJ, OBJECTLINK, PALETTE, PANE, PASSWORD, PIE, PIEFORMAT, PLOTAREA, PLOTGROWTH, PLS, POS, PRECISION, PRINTGRIDLINES, PRINTHEADERS, PROT4REV, PROT4REVPASS, PROTECT, RADAR, RADARAREA, REFMODE, REFRESHALL, RIGHTMARGIN, RK, ROW, SAVERECALC, SCATTER, SCL, SELECTION, SERFORMAT, SERIES, SERIESTEXT, SERTOCRT, SETUP, SHTPROPS, SIINDEX, SST, STRING, STYLE, SUPBOOK, SURFACE, TABID, TABLE, TEXT, TICK, TIP, TOPMARGIN, UNITS, UNKNOWN, UNKNOWN1, UNKNOWN10, UNKNOWN2, UNKNOWN3, UNKNOWN4, UNKNOWN5, UNKNOWN6, UNKNOWN7, UNKNOWN8, UNKNOWN9, USESELFS, VALUERANGE, VCENTER, VERTICALPAGEBREAKS, WINDOW1, WINDOW2, WINDOWPROTECT, WRITEACCESS, WSBOOL, XF
 
Fields inherited from interface jet.report.xls.DataConstants
BIG_BLOCK_SIZE, BYTE, DIRECTORY_TYPE, DOCUMENT_TYPE, DOUBLE, FLOAT, INT, LONG, MAX_LENGTH, MAX_RECORD_SIZE, MIN_DOC_SIZE, PROPERTY_SIZE, PROPERTY_TYPE_OFFSET, ROOT_TYPE, SHORT, SMALL_BLOCK_SIZE, UNUSED_BLOCK
 
Constructor Summary
Format(short index, java.lang.String str, java.lang.String encoding)
          Constructs a Format record and sets its fields appropriately.
 
Method Summary
 void input(util.RandomAccessStream stream)
          input Format from input stream
 int opcode()
          get the opcode of Format.
 int output(util.RandomAccessStream stream)
          output the record Format.
 
Methods inherited from class jet.report.xls.Biff
getLength
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Format

public Format(short index,
              java.lang.String str,
              java.lang.String encoding)
Constructs a Format record and sets its fields appropriately.

Parameters:
index - The format index code
str - The Number Format string
Method Detail

opcode

public final int opcode()
get the opcode of Format.

Specified by:
opcode in class jet.report.xls.Biff

output

public int output(util.RandomAccessStream stream)
           throws java.io.IOException
output the record Format.

Overrides:
output in class jet.report.xls.Biff
Throws:
java.io.IOException

input

public void input(util.RandomAccessStream stream)
           throws java.io.IOException
input Format from input stream

Overrides:
input in class jet.report.xls.Biff
Throws:
java.io.IOException