|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjxl.read.biff.File
File containing the data from the binary stream
| Constructor Summary | |
File(byte[] d)
Constructs a file from already defragged binary data. |
|
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 |
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 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public File(java.io.InputStream is,
WorkbookSettings ws)
throws java.io.IOException,
BiffException
is - the input streamws - the workbook settings
java.io.IOException
BiffExceptionpublic File(byte[] d)
d - the already parsed data| Method Detail |
public void skip(int bytes)
bytes - the number of bytes to skip forward
public byte[] read(int pos,
int length)
pos - the position to read fromlength - the number of bytes to read
public int getPos()
public void setPos(int p)
p - the temporary positionpublic void restorePos()
public void close()
public void clear()
public boolean hasNext()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||