FileDocCategorySizeDatePackage
SockInStreamLogger.javaAPI DocExample1182Tue Apr 20 15:07:40 BST 1999tuning.socket

SockInStreamLogger

public class SockInStreamLogger extends InputStream

Fields Summary
Socket
s
InputStream
in
byte[]
one_byte
Constructors Summary
public SockInStreamLogger(Socket so, InputStream i)

      in = i; s = so;
Methods Summary
public intavailable()

return in.available();
public voidclose()

in.close();
public voidmark(int readlimit)

in.mark(readlimit);
public booleanmarkSupported()

return in.markSupported();
public intread()

    int ret = in.read();
    one_byte[0] = (byte) ret;
    //SockStreamLogger.read(s, 1, one_byte, 0);
    return ret;
  
public intread(byte[] b)

    int sz = in.read(b);
    SockStreamLogger.read(s, sz, b, 0);
    return sz;
  
public intread(byte[] b, int off, int len)

    int sz = in.read(b, off, len);
    SockStreamLogger.read(s, sz, b, off);
    return sz;
  
public voidreset()

in.reset();
public longskip(long n)

return in.skip(n);