Split the functionality of ConnectionReaderImpl into layers.

This commit is contained in:
akwizgran
2012-01-19 19:52:15 +00:00
parent 1f39bfef78
commit 12393581f9
9 changed files with 182 additions and 116 deletions

View File

@@ -12,7 +12,7 @@ public interface ConnectionReaderFactory {
* returns.
*/
ConnectionReader createConnectionReader(InputStream in, byte[] secret,
byte[] tag);
byte[] bufferedTag);
/**
* Creates a connection reader for a simplex connection or the initiator's
@@ -20,7 +20,7 @@ public interface ConnectionReaderFactory {
* returns.
*/
ConnectionReader createConnectionReader(SegmentSource in, byte[] secret,
Segment buffered);
Segment bufferedSegment);
/**
* Creates a connection reader for the responder's side of a duplex