SockOutStreamLoggerpublic class SockOutStreamLogger extends OutputStream
Fields Summary |
---|
Socket | s | OutputStream | out | byte[] | one_byte |
Constructors Summary |
---|
public SockOutStreamLogger(Socket so, OutputStream o)
out = o; s = so;
|
Methods Summary |
---|
public void | close()out.close();
| public void | flush()out.flush();
| public void | write(int b)
out.write(b);
one_byte[0] = (byte) b;
SockStreamLogger.written(s, 1, one_byte, 0);
| public void | write(byte[] b)
out.write(b);
SockStreamLogger.written(s, b.length, b, 0);
| public void | write(byte[] b, int off, int len)
out.write(b, off, len);
SockStreamLogger.written(s, len, b, off);
|
|