|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--jxl.read.biff.File
File containing the data from the binary stream
Field Summary | |
private int |
arrayGrowSize
The amount to increase the growable array by |
private byte[] |
data
The data from the excel 97 file |
private int |
initialFileSize
The initial file size |
private int |
oldPos
The saved pos |
private int |
pos
The current position within the file |
private WorkbookSettings |
workbookSettings
The workbook settings |
Constructor Summary | |
File(java.io.InputStream is,
WorkbookSettings ws)
Constructs a file from the input stream |
Method Summary | |
void |
clear()
Clears the contents of the file |
void |
close()
Deprecated. As of version 1.6 use workbook.close() instead |
int |
getPos()
Gets the position in the stream |
boolean |
hasNext()
Determines if the current position exceeds the end of the file |
private void |
moveToFirstBof()
Moves to the first bof in the file |
(package private) Record |
next()
Returns the next data record and increments the pointer |
(package private) Record |
peek()
|
byte[] |
read(int pos,
int length)
Copies the bytes into a new array and returns it. |
void |
restorePos()
Restores the original position These methods are used by the SheetImpl.readSheet() when it is reading in all the cell values |
void |
setPos(int p)
Saves the current position and temporarily sets the position to be the new one. |
void |
skip(int bytes)
Skips forward the specified number of bytes |
Methods inherited from class java.lang.Object |
|
Field Detail |
private byte[] data
private int pos
private int oldPos
private int initialFileSize
private int arrayGrowSize
private WorkbookSettings workbookSettings
Constructor Detail |
public File(java.io.InputStream is, WorkbookSettings ws) throws java.io.IOException, BiffException
is
- the input streamjava.io.IOException
- BiffException
- Method Detail |
Record next()
Record peek()
public void skip(int bytes)
bytes
- the number of bytes to skip forwardpublic byte[] read(int pos, int length)
pos
- the position to read fromlength
- the number of bytes to readpublic int getPos()
public void setPos(int p)
pos
- the temporary positionpublic void restorePos()
private void moveToFirstBof()
public void close()
public void clear()
public boolean hasNext()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |