|
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.OutputStream com.sun.spot.io.j2me.socket.SocketProtocolOutputStream
public class SocketProtocolOutputStream
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 | |
---|---|
SocketProtocolOutputStream(OutputStream out)
Create the output stream from another OutputStream. |
Method Summary | |
---|---|
void |
close()
Close the OutputStream |
void |
flush()
Flush the stream. |
void |
write(int data)
Write data in the stream. |
void |
writeError(String message)
Write an error to the stream. |
Methods inherited from class java.io.OutputStream |
---|
write, write |
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 SocketProtocolOutputStream(OutputStream out)
out
- OutputStream to be usedMethod Detail |
---|
public void write(int data) throws IOException
write
in class OutputStream
data
- the byte
.
IOException
- if an I/O error occurs. In particular,
an IOException
may be thrown if the
output stream has been closed.public void writeError(String message) throws IOException
IOException
public void flush() throws IOException
flush
in class OutputStream
IOException
- if an I/O error occurs.public void close() throws IOException
close
in class OutputStream
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 |