|
DCT Lightfoot v3 API specification | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--java.io.InputStream
|
+--com.dctl.hardware.flash.FlashFileInputStream
Flash file input stream that allows input operations to take place on a flash file
| Constructor Summary | |
FlashFileInputStream(FlashFile file)
Create a new input stream from a file |
|
FlashFileInputStream(java.lang.String name)
Create a new input stream from a file |
|
| Method Summary | |
int |
available()
Return how many bytes can be read - this is the remaining length of the file |
void |
close()
Close the file |
void |
mark(int readlimit)
Mark the current location |
boolean |
markSupported()
Test if mark supported |
int |
read()
Read a byte from the file |
int |
read(byte[] buf,
int offset,
int length)
Read from the file into a buffer |
void |
reset()
Reset to the previous marked location |
int |
skip(int amount)
Skip a number of bytes |
| Methods inherited from class java.io.InputStream |
read, skip |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public FlashFileInputStream(FlashFile file)
throws IOException
file - The flash file
IOException - if there is an error creating the file
public FlashFileInputStream(java.lang.String name)
throws IOException
name - The name of the file
IOException - if there is an error creating the file| Method Detail |
public void close()
close in class InputStream
public int read()
throws IOException
read in interface Readableread in class InputStreamIOException - if there is an error
public int read(byte[] buf,
int offset,
int length)
throws IOException
read in interface Readableread in class InputStreambuf - The bufferoffset - The offset into the bufferlength - The number of bytes to read
IOException - if there is an error
public int skip(int amount)
throws IOException
amount - The number of bytes to skip
IOException - if there is an error
public int available()
throws IOException
available in class InputStreamIOException - if there is an errorpublic void mark(int readlimit)
mark in class InputStreamreadlimit - Ignoredpublic boolean markSupported()
markSupported in class InputStream
public void reset()
throws IOException
reset in class InputStreamIOException - if there is an error
|
DCT Lightfoot v3 API specification | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||