|
SunSPOT host API V3.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 | |
|---|---|
void |
close()
Close the InputStream. |
int |
read()
Read data from the stream. |
| Methods inherited from class java.io.InputStream |
|---|
available, mark, markSupported, read, read, reset, skip |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, 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 InputStreamIOException
public void close()
throws IOException
close in interface Closeableclose in class InputStreamIOException
|
SunSPOT host API V3.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||