|
SunSPOT API V4.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.InputStream
com.sun.spot.io.j2me.socket.SocketProtocolInputStream
public class SocketProtocolInputStream
Socket specific InputSteam. This class handles the passing of protocol information while remaining seamless to the user.
| Field Summary | |
|---|---|
static int |
CONNECTION_CLOSE
|
static int |
END_OF_MSG
|
static int |
ESCAPE_CHAR
|
static int |
IOEXCEPTION
|
| Constructor Summary | |
|---|---|
SocketProtocolInputStream(InputStream in)
Create the input stream from another InputStream. |
|
| Method Summary | |
|---|---|
int |
available()
Returns the number of bytes that can be read (or skipped over) from this input stream without blocking by the next caller of a method for this input stream. |
void |
close()
Close the InputStream. |
int |
read()
Read data from the stream. |
| Methods inherited from class java.io.InputStream |
|---|
mark, markSupported, read, read, reset, skip |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int ESCAPE_CHAR
public static final int CONNECTION_CLOSE
public static final int IOEXCEPTION
public static final int END_OF_MSG
| Constructor Detail |
|---|
public SocketProtocolInputStream(InputStream in)
in - InputStream to be used| 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
InputStream The available method for class InputStream
always returns 0.
This method should be overridden by subclasses.
available in class InputStreamIOException - if an I/O error occurs.
public void close()
throws IOException
close in class InputStreamIOException - if an I/O error occurs.
|
SunSPOT API V4.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||