com.atlassian.tunnel.tunnel
Class SocketAndStreams

java.lang.Object
  extended by com.atlassian.tunnel.tunnel.SocketAndStreams
All Implemented Interfaces:
StreamProvider, Closeable

public class SocketAndStreams
extends Object
implements Closeable, StreamProvider


Constructor Summary
SocketAndStreams(Socket socket)
           
 
Method Summary
 void close()
           
 InputStream getInputStream()
           
 OutputStream getOutputStream()
           
 Socket getSocket()
           
 Runnable onInputStreamShutdown()
           
 Runnable onOutputStreamShutdown()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SocketAndStreams

public SocketAndStreams(Socket socket)
                 throws IOException
Throws:
IOException
Method Detail

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.