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.InputStream
java.io.IOException
public int read() throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
public int available() throws java.io.IOException
available
in class java.io.InputStream
java.io.IOException
public void close()
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.InputStream