public class NXTInputStream
extends java.io.InputStream
| Modifier and Type | Method and Description |
|---|---|
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.
|
int |
read(byte[] b,
int off,
int len) |
public int read(byte[] b,
int off,
int len)
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic int read()
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic int available()
throws java.io.IOException
available in class java.io.InputStreamjava.io.IOExceptionpublic void close()
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.InputStream