Used to Wrap a socket and to provide access to the underlying session. @param Is the type of session that is returned. Eg For JSSE would be SSLSession.
| 10 | * @param <T> Is the type of session that is returned. Eg For JSSE would be SSLSession. |
| 11 | */ |
| 12 | public interface Source<T> |
| 13 | { |
| 14 | InputStream getInputStream() |
| 15 | throws IOException; |
| 16 | |
| 17 | OutputStream getOutputStream() |
| 18 | throws IOException; |
| 19 | |
| 20 | T getSession(); |
| 21 | |
| 22 | void close() |
| 23 | throws IOException; |
| 24 | |
| 25 | } |
no outgoing calls
no test coverage detected