|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.io.OutputStream
verinec.netsim.util.net.sockets.SocketOutputStream
public class SocketOutputStream
A SocketOutputStream that write it's data into a Vector and sends thisone as payload to a SocketImpl.
| Field Summary | |
|---|---|
private SocketImpl |
impl
|
private Logger |
jlogger
|
| Constructor Summary | |
|---|---|
SocketOutputStream(SocketImpl impl)
Constructs a new SocketOutputStream that write it's data to a SocketImpl |
|
| Method Summary | |
|---|---|
void |
close()
|
void |
flush()
does nothing, because there is no buffer for this stream. |
void |
write(byte[] b)
|
void |
write(byte[] b,
int off,
int len)
|
void |
write(int b)
sends a TCPPacket with one byte of data |
void |
write(int b,
ILogger logger)
sends a TCPPacket with one byte of data |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private SocketImpl impl
private Logger jlogger
| Constructor Detail |
|---|
public SocketOutputStream(SocketImpl impl)
throws IOException
impl - a SocketImpl
IOException - if an I/O error occurs| Method Detail |
|---|
public void flush()
throws IOException
flush in interface Flushableflush in class OutputStreamIOExceptionOutputStream.flush()
public void write(int b)
throws IOException
write in class OutputStreamIOExceptionOutputStream.write(int)
public void write(int b,
ILogger logger)
throws IOException
b - some datalogger - a logger
IOException - if an I/O error occurs. In particular, an IOException is
thrown if the output stream is closed.write(int)
public void write(byte[] b)
throws IOException
write in class OutputStreamIOExceptionOutputStream.write(byte[])
public void write(byte[] b,
int off,
int len)
throws IOException
write in class OutputStreamIOExceptionOutputStream.write(byte[], int, int)
public void close()
throws IOException
close in interface Closeableclose in class OutputStreamIOExceptionOutputStream.close()
|
Copyright © 2005 Verinec, DIUF | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||