com.atlassian.tunnel.tunnel
Class SocketAndStreams
java.lang.Object
com.atlassian.tunnel.tunnel.SocketAndStreams
- All Implemented Interfaces:
- StreamProvider, Closeable
public class SocketAndStreams
- extends Object
- implements Closeable, StreamProvider
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SocketAndStreams
public SocketAndStreams(Socket socket)
throws IOException
- Throws:
IOException
getOutputStream
public OutputStream getOutputStream()
- Specified by:
getOutputStream in interface StreamProvider
getInputStream
public InputStream getInputStream()
- Specified by:
getInputStream in interface StreamProvider
close
public void close()
throws IOException
- Specified by:
close in interface Closeable
- Throws:
IOException
onInputStreamShutdown
public Runnable onInputStreamShutdown()
onOutputStreamShutdown
public Runnable onOutputStreamShutdown()
getSocket
public Socket getSocket()
Copyright © 2015 Atlassian. All rights reserved.