proxy progress
This commit is contained in:
parent
f22b28dc72
commit
5c37575d49
|
@ -24,15 +24,15 @@ public class TcpIoStream implements IoStream {
|
||||||
private IncomingDataBuffer dataBuffer;
|
private IncomingDataBuffer dataBuffer;
|
||||||
|
|
||||||
public TcpIoStream(Logger logger, Socket socket) throws IOException {
|
public TcpIoStream(Logger logger, Socket socket) throws IOException {
|
||||||
InputStream input1 = new BufferedInputStream(socket.getInputStream());
|
InputStream input = new BufferedInputStream(socket.getInputStream());
|
||||||
OutputStream output = socket.getOutputStream();
|
OutputStream output = socket.getOutputStream();
|
||||||
this.logger = logger;
|
this.logger = logger;
|
||||||
if (input1 == null)
|
if (input == null)
|
||||||
throw new NullPointerException("input");
|
throw new NullPointerException("input");
|
||||||
if (output == null)
|
if (output == null)
|
||||||
throw new NullPointerException("output");
|
throw new NullPointerException("output");
|
||||||
this.output = output;
|
this.output = output;
|
||||||
this.input = input1;
|
this.input = input;
|
||||||
}
|
}
|
||||||
|
|
||||||
private TcpIoStream(Logger logger, InputStream input, OutputStream output) {
|
private TcpIoStream(Logger logger, InputStream input, OutputStream output) {
|
||||||
|
|
Loading…
Reference in New Issue