Save This Page
Home » jexcelapi_2_6_8 » jxl.read.biff » [javadoc | source]
jxl.read.biff
public class: File [javadoc | source]
java.lang.Object
   jxl.read.biff.File
File containing the data from the binary stream
Constructor:
 public File(byte[] d) 
 public File(InputStream is,
    WorkbookSettings ws) throws BiffException, IOException 
    Constructs a file from the input stream
    Parameters:
    is - the input stream
    ws - the workbook settings
    Throws:
    IOException -
    BiffException -
    exception: IOException -
    exception: BiffException -
Method from jxl.read.biff.File Summary:
clear,   close,   getCompoundFile,   getPos,   hasNext,   next,   peek,   read,   restorePos,   setPos,   skip
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from jxl.read.biff.File Detail:
 public  void clear() 
    Clears the contents of the file
 public  void close() 
Deprecated! As - of version 1.6 use workbook.close() instead

    "Closes" the biff file
 CompoundFile getCompoundFile() 
    Accessor for the compound file. The returned value will only be non-null if the property sets feature is enabled and the workbook contains additional property sets
 public int getPos() 
    Gets the position in the stream
 public boolean hasNext() 
    Determines if the current position exceeds the end of the file
 Record next() 
    Returns the next data record and increments the pointer
 Record peek() 
    Peek ahead to the next record, without incrementing the file position
 public byte[] read(int pos,
    int length) 
    Copies the bytes into a new array and returns it.
 public  void restorePos() 
    Restores the original position These methods are used by the SheetImpl.readSheet() when it is reading in all the cell values
 public  void setPos(int p) 
    Saves the current position and temporarily sets the position to be the new one. The original position may be restored usind the restorePos() method. This is used when reading in the cell values of the sheet - an addition in 1.6 for memory allocation reasons. These methods are used by the SheetImpl.readSheet() when it is reading in all the cell values
 public  void skip(int bytes) 
    Skips forward the specified number of bytes