SockInStreamLoggerpublic 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 int | available()return in.available();
| public void | close()in.close();
| public void | mark(int readlimit)in.mark(readlimit);
| public boolean | markSupported()return in.markSupported();
| public int | read()
int ret = in.read();
one_byte[0] = (byte) ret;
//SockStreamLogger.read(s, 1, one_byte, 0);
return ret;
| public int | read(byte[] b)
int sz = in.read(b);
SockStreamLogger.read(s, sz, b, 0);
return sz;
| public int | read(byte[] b, int off, int len)
int sz = in.read(b, off, len);
SockStreamLogger.read(s, sz, b, off);
return sz;
| public void | reset()in.reset();
| public long | skip(long n)return in.skip(n);
|
|