com.taka_2.ftp
クラス Session

java.lang.Object
  |
  +--com.taka_2.ftp.Session

public class Session
extends java.lang.Object

Telnet風、行指向通信クラス


コンストラクタの概要
Session(java.lang.String hostName, int port)
          ホスト名とポートを指定して構築
 
メソッドの概要
 void close()
          コネクションのクローズ
 java.lang.String readLine()
          1行読み込み
 void sendLine(java.lang.String str)
          1行送信
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

Session

public Session(java.lang.String hostName,
               int port)
        throws java.io.IOException
ホスト名とポートを指定して構築

メソッドの詳細

readLine

public java.lang.String readLine()
                          throws java.io.IOException
1行読み込み

java.io.IOException

sendLine

public void sendLine(java.lang.String str)
              throws java.io.IOException
1行送信

java.io.IOException

close

public void close()
           throws java.io.IOException
コネクションのクローズ

java.io.IOException