|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.millscript.office.excel.BIFFRecordInputStream
public class BIFFRecordInputStream
This class extends a filter input stream with the methods required to decode BIFF records.
| Constructor Summary | |
|---|---|
BIFFRecordInputStream(byte[] b)
Constructs a new BIFF record input stream to read records from the specified byte array. |
|
BIFFRecordInputStream(java.io.InputStream is)
Constructs a new BIFF record input stream to read records from the specified input stream. |
|
| Method Summary | |
|---|---|
boolean |
hasMoreBytes()
|
int |
read()
|
int |
read2ByteInt()
Reads 2 bytes from the stream as a 16 bit little endian positive integer. |
byte[] |
readBytes(int len)
Reads the requeste number of bytes from the stream and returns them as a byte array. |
byte[] |
readRecordData()
Returns the next records data. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BIFFRecordInputStream(byte[] b)
b - the byte array to decodepublic BIFFRecordInputStream(java.io.InputStream is)
is - the InputStream to fetch byte data from| Method Detail |
|---|
public boolean hasMoreBytes()
public int read()
throws java.io.IOException
java.io.IOExceptionpublic int read2ByteInt()
java.io.IOException - if there is a problem reading from the streampublic byte[] readBytes(int len)
len - the number of bytes to read from the stream
java.io.IOException - if there is a problem reading from the streampublic byte[] readRecordData()
java.io.IOException - if there is a problem reading from the stream
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||