(Socket connection)
| 83 | } |
| 84 | //#endif |
| 85 | public Utf8IOStream(Socket connection) throws IOException { |
| 86 | this.connection = connection; |
| 87 | try { |
| 88 | connection.setTcpNoDelay(true); |
| 89 | //connection.setSoLinger(true, 300); |
| 90 | } catch (Exception e) { |
| 91 | e.printStackTrace(); |
| 92 | } |
| 93 | |
| 94 | inpStream = connection.getInputStream(); |
| 95 | outStream = connection.getOutputStream(); |
| 96 | |
| 97 | length=0; |
| 98 | pbyte=0; |
| 99 | } |
| 100 | |
| 101 | public Utf8IOStream(HttpProxyConnection proxy) throws IOException { |
| 102 | this.connection = proxy.getSocket(); |
nothing calls this directly
no test coverage detected