public class ByteStreamer extends Object implements Serializable, XLSConstants
WorkBook,
Boundsheet,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
protected WorkBook |
workbook |
AI, ALLOWDUPES, ALRUNS, AREA, AREAFORMAT, ARRAY, ATTACHEDLABEL, AUTOFILTER, AXCENT, AXESUSED, AXIS, AXISLINEFORMAT, AXISPARENT, BACKUP, BAR, BEGIN, BLANK, BOF, BOOKBOOL, BOOLERR, BOPPOP, BOPPOPCUSTOM, BOTTOM_MARGIN, BOTTOMMARGIN, BOUNDSHEET, CALC_MODE_PROP, CALCCOUNT, CALCMODE, CALCULATE_ALWAYS, CALCULATE_AUTO, CALCULATE_EXPLICIT, CATLAB, CATSERRANGE, CF, CF12, CHART, CHART3DBARSHAPE, CHARTFORMAT, CHARTFORMATLINK, CHARTFRTINFO, CHARTLINE, CODENAME, COLINFO, CONDFMT, CONDFMT12, CONTINUE, COUNTRY, CRN, CRTLAYOUT12, CRTLAYOUT12A, DAT, DATAFORMAT, DATALABEXT, DATALABEXTCONTENTS, DATE1904, DBCELL, DCON, DCONBIN, DCONNAME, DCONREF, DEBUG_HIGH, DEBUG_LOW, DEBUG_MEDIUM, DEFAULTENCODING, DEFAULTROWHEIGHT, DEFAULTTEXT, DEFCOLWIDTH, DELTA, DIMENSIONS, DROPBAR, DSF, DV, DVAL, END, ENDBLOCK, ENDEXTSST, ENDOBJECT, EOF, EXCEL2K, EXTERNCOUNT, EXTERNNAME, EXTERNSHEET, EXTSST, FBI, FEATHEADR, FILE_LOCK, FILEPASS, FONT, FONTBASIS, FONTX, FOOTERREC, FORMAT, FORMULA, FRAME, FRTFONTLIST, FRTWRAPPER, GARBAGE, GELFRAME, GUTS, HCENTER, HEADERREC, HLINK, HORIZONTAL_PAGE_BREAKS, IFMT, INDEX, INTERFACE_HDR, ITERATION, LABEL, LABELSST, LEFT_MARGIN, LEFTMARGIN, LEGEND, LEGENDXN, LINE, LINEFORMAT, MARKERFORMAT, MAXCOLS, MAXCOLS_BIFF8, MAXRECLEN, MAXROWS, MAXROWS_BIFF8, MERGEDCELLS, MSODRAWING, MSODRAWINGGROUP, MSODRAWINGSELECTION, MULBLANK, MULRK, NAME, NOTE, NUMBER, OBJ, OBJECTLINK, OBJPROTECT, OBPROJ, PALETTE, PANE, PASSWORD, PHONETIC, PICF, PIE, PIEFORMAT, PIVOTCHARTBITS, PIVOTCHARTLINK, PLOTAREA, PLOTGROWTH, PLS, PLV, POS, PRECISION, PRINT_GRIDLINES, PRINT_ROW_HEADERS, PRINTGRID, PRINTROWCOL, PROT4REV, PROTECT, QSISXTAG, RADAR, RADARAREA, RANGEPROTECTION, REFMODE, REFTRACK_PROP, RIGHT_MARGIN, RIGHTMARGIN, RK, ROW, RRD_HEAD, RRD_INFO, RSTRING, RTENTEXU, RTMERGECELLS, SBASEREF, SCATTER, SCENPROTECT, SCL, SELECTION, SERAUXERRBAR, SERAUXTREND, SERFMT, SERIES, SERIESLIST, SERIESTEXT, SERPARENT, SERTOCRT, SETUP, SHAREDUPES, SHEETLAYOUT, SHEETPROTECTION, SHRFMLA, SHTPROPS, SIIINDEX, SST, STARTBLOCK, STARTOBJECT, STRING_ENCODING_AUTO, STRING_ENCODING_COMPRESSED, STRING_ENCODING_UNICODE, STRINGREC, STYLE, SUPBOOK, SURFACE, SXADDL, SXBOOL, SXDB, SXDBB, SXDBEX, SXDI, SXEX, SXFDB, SXFDBTYPE, SXFORMAT, SXIVD, SXLI, SXNUM, SXPI, SXSTREAMID, SXSTRING, SXVD, SXVDEX, SXVI, SXVIEW, SXVIEWEX9, SXVIEWLINK, SXVS, TABID, TABLE, TABLESTYLES, TEXTDISP, THREED, TICK, TOP_MARGIN, TOPMARGIN, TXO, TYPE_BLANK, TYPE_BOOLEAN, TYPE_DOUBLE, TYPE_FORMULA, TYPE_FP, TYPE_INT, TYPE_STRING, UNICODEENCODING, UNITS, USERBVIEW, USERSVIEWBEGIN, USERSVIEWEND, USETEMPFILE_PROP, USR_EXCL, VALIDATEWORKBOOK, VALUERANGE, VB_MODULE, VCENTER, VERTICAL_PAGE_BREAKS, WINDOW_PROTECT, WINDOW1, WINDOW2, WK_CHART, WK_FILE, WK_GLOBALS, WK_MACROSHEET, WK_WORKSHEET, WSBOOL, XCT, XF, XLS_MAX_COLS, YMULT| Constructor and Description |
|---|
ByteStreamer(WorkBook bk) |
| Modifier and Type | Method and Description |
|---|---|
void |
addRecord(BiffRec rec)
add an BiffRec to this streamer.
|
void |
addRecordAt(BiffRec rec,
int idx)
add an BiffRec to this streamer at the specified index.
|
void |
addRecordToBookStreamerAt(BiffRec rec,
int idx)
Bypass the sheet vecs...
|
void |
addRecordToSheetStreamerAt(BiffRec rec,
int idx,
Boundsheet sht)
add an BiffRec to this streamer at the specified index.
|
void |
close()
clear out object references
|
Object[] |
getBiffRecords()
Returns an array of all the BiffRecs in the streamer.
|
byte[] |
getBytes() |
String |
getName() |
int |
getRealRecordIndex(BiffRec rec)
get the real (non-boundsheet based) recvec index of this record
|
BiffRec |
getRecordAt(int t)
get a record from the underlying array
|
BiffRec |
getRecordAt(int t,
BiffRec rec)
get a record from the underlying array
|
int |
getRecordIndex(BiffRec rec)
get the recvec index of this record
|
int |
getRecordIndex(int opcode) |
int |
getRecVecSize() |
short |
getSubstreamType() |
String |
getSubstreamTypeName() |
void |
initTestRecVect() |
boolean |
removeRecord(BiffRec rec)
remove a record from the underlying array
|
void |
setBiffRecords(Collection recs) |
void |
setBytes(byte[] b) |
int |
streamOut(OutputStream _out)
stream the bytes to an outputstream
|
void |
WriteAllRecs(String fName) |
void |
WriteAllRecs(String fName,
boolean bWriteSheetRecs)
Debug utility to write out ALL BIFF records
|
StringBuffer |
writeOut(OutputStream out)
Write all of the records to the output stream, including
creating lbplypos records, assembling continues, etc.
|
void |
writeRecord(OutputStream out,
BiffRec rec) |
static int |
writeRecs(ArrayList recArr,
BufferedWriter writer,
int ctr,
int level)
Debug utility to write out BIFF records in friendly fashion
|
protected WorkBook workbook
public ByteStreamer(WorkBook bk)
public int getRecordIndex(int opcode)
public void initTestRecVect()
public Object[] getBiffRecords()
public void setBiffRecords(Collection recs)
public void setBytes(byte[] b)
public byte[] getBytes()
public int getRecVecSize()
public String getName()
public String getSubstreamTypeName()
public short getSubstreamType()
public BiffRec getRecordAt(int t)
public boolean removeRecord(BiffRec rec)
public int getRecordIndex(BiffRec rec)
public int getRealRecordIndex(BiffRec rec)
public void addRecord(BiffRec rec)
public void addRecordToBookStreamerAt(BiffRec rec, int idx)
rec - idx - public void addRecordToSheetStreamerAt(BiffRec rec, int idx, Boundsheet sht)
public void addRecordAt(BiffRec rec, int idx)
public int streamOut(OutputStream _out)
public void writeRecord(OutputStream out, BiffRec rec) throws IOException
IOExceptionpublic StringBuffer writeOut(OutputStream out)
public void WriteAllRecs(String fName)
public void WriteAllRecs(String fName, boolean bWriteSheetRecs)
fName - output filenamebWriteSheeRecs - truth of "include sheet records in output"public static int writeRecs(ArrayList recArr, BufferedWriter writer, int ctr, int level)
recArr - array of recordswriter - BufferedWriterlevel - For ChartRecs that have sub-records, recurse Levelpublic void close()
Copyright © 2002–2019 Starter Inc.. All rights reserved.