|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.io.InputStream lejos.nxt.comm.NXTInputStream
public class NXTInputStream
Extends InputStream for BlueTooth; implements available()
Method Summary | |
---|---|
int |
available()
returns the number of bytes in the input buffer - can be read without blocking |
void |
close()
the stream is restored to its original state - ready to receive more data. |
int |
read()
Returns one byte as an integer between 0 and 255. |
Methods inherited from class java.io.InputStream |
---|
mark, markSupported, read, read, reset, skip |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public int read() throws IOException
read
in class InputStream
-1
if the end of the
stream is reached.
IOException
- if an I/O error occurs.public int available() throws IOException
available
in class InputStream
IOException
- if an I/O error occurs.public void close()
close
in class InputStream
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |