Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
TCPSocket |
|
| 1.0;1 |
1 | /* | |
2 | * Created on Jul 3, 2004 | |
3 | * | |
4 | * To change the template for this generated file go to | |
5 | * Window - Preferences - Java - Code Generation - Code and Comments | |
6 | */ | |
7 | package biz.xsoftware.examples.behavior; | |
8 | ||
9 | import java.io.IOException; | |
10 | import java.nio.ByteBuffer; | |
11 | ||
12 | /** | |
13 | * Abstraction of a Socket to allow testing. | |
14 | * | |
15 | * @author Dean Hiller | |
16 | */ | |
17 | public interface TCPSocket { | |
18 | ||
19 | public int read(ByteBuffer b) throws IOException; | |
20 | ||
21 | public int write(ByteBuffer b) throws IOException; | |
22 | } |