com.hs.mail.container.server.socket
Class TcpTransport

java.lang.Object
  extended by com.hs.mail.container.server.socket.TcpTransport

public class TcpTransport
extends Object

Since:
May 28, 2010
Author:
Won Chul Doh

Constructor Summary
TcpTransport()
           
 
Method Summary
 void endSession()
           
 TcpSocketChannel getChannel()
           
 InputStream getInputStream()
           
 OutputStream getOutputStream()
           
 InetAddress getRemoteAddress()
           
 boolean isSessionEnded()
           
 void println(String str)
           
 String readLine()
           
 void setChannel(TcpSocketChannel channel)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TcpTransport

public TcpTransport()
             throws IOException
Throws:
IOException
Method Detail

setChannel

public void setChannel(TcpSocketChannel channel)
                throws IOException
Throws:
IOException

getChannel

public TcpSocketChannel getChannel()

getRemoteAddress

public InetAddress getRemoteAddress()

getInputStream

public InputStream getInputStream()
                           throws IOException
Throws:
IOException

getOutputStream

public OutputStream getOutputStream()
                             throws IOException
Throws:
IOException

isSessionEnded

public boolean isSessionEnded()

endSession

public void endSession()

readLine

public String readLine()
                throws IOException
Throws:
IOException

println

public void println(String str)


Copyright © 2011. All Rights Reserved.