|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectjava.lang.Thread
gggd.xml.SocketCommunicator
電文送受信用クラス。
クライアントソケットの取得を行います。
| フィールドの概要 |
| クラス java.lang.Thread から継承したフィールド |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| コンストラクタの概要 | |
SocketCommunicator()
コンストラクタ。 |
|
| メソッドの概要 | |
void |
disconnect()
切断処理をします。 |
static java.io.BufferedWriter |
getBuffWriter()
メッセージ送信処理用のBufferWriterを返します。 |
static java.net.Socket |
getClientSocket()
クライアントソケットを返します。 |
static java.io.PrintWriter |
getPrintWriter()
メッセージ送信処理用のPrintWriterを返します。 |
void |
run()
接続用スレッド処理を開始します。 |
static void |
sendMsg(java.lang.String msg)
メッセージ送信処理を行います。 |
void |
startCommunicate(java.net.Socket commSock)
接続開始処理を行います。 |
| クラス java.lang.Thread から継承したメソッド |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield |
| クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| コンストラクタの詳細 |
public SocketCommunicator()
| メソッドの詳細 |
public void startCommunicate(java.net.Socket commSock)
commSock - クライアントソケット
public void run()
public void disconnect()
public static void sendMsg(java.lang.String msg)
throws java.io.IOException
msg - 返却するメッセージ
java.io.IOException - メッセージ送信異常発生
public static java.io.BufferedWriter getBuffWriter()
throws java.lang.Exception
java.lang.Exception - 予期せぬ例外が発生した場合
public static java.io.PrintWriter getPrintWriter()
throws java.lang.Exception
java.lang.Exception - 予期せぬ例外が発生した場合
public static java.net.Socket getClientSocket()
throws java.lang.Exception
java.lang.Exception - 予期せぬ例外が発生した場合
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||