more changes
[IRC.git] / Robust / src / ClassLibrary / SocketInputStream.java
1 public class SocketInputStream extends InputStream {
2     Socket s;
3     public SocketInputStream(Socket s) {
4         this.s=s;
5     }
6
7     public int read() {
8         byte[] x=new byte[1];
9         int len=s.read(x);
10         if (len==0)
11             return -1;
12         else return x[1];
13     }
14 }