|
SunSPOT API V3.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.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 |
---|
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 usedMethod 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 void close() throws IOException
close
in class InputStream
IOException
- if an I/O error occurs.
|
SunSPOT API V3.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |