FileDocCategorySizeDatePackage
SockOutStreamLogger.javaAPI DocExample886Tue Apr 20 15:06:36 BST 1999tuning.socket

SockOutStreamLogger

public 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 voidclose()

out.close();
public voidflush()

out.flush();
public voidwrite(int b)

    out.write(b);
    one_byte[0] = (byte) b;
    SockStreamLogger.written(s, 1, one_byte, 0);
  
public voidwrite(byte[] b)

    out.write(b);
    SockStreamLogger.written(s, b.length, b, 0);
  
public voidwrite(byte[] b, int off, int len)

    out.write(b, off, len);
    SockStreamLogger.written(s, len, b, off);