projects
/
IRC.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
lots of new files
[IRC.git]
/
Robust
/
src
/
ClassLibrary
/
SocketInputStream.java
1
public class SocketInputStream {
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
}