jp.ossc.installer.gui.thread
クラス InputStreamThread

java.lang.Object
  上位を拡張 java.lang.Thread
      上位を拡張 jp.ossc.installer.gui.thread.InputStreamThread
すべての実装されたインタフェース:
java.lang.Runnable

public class InputStreamThread
extends java.lang.Thread

InputStremを監視するスレッドクラスです。
Runtime.execメソッドは、親プロセスが子プロセスの読み取り続けない場合
(※ 512byteまでは大丈夫な模様)
Process.waitFor()がデッドロックを発生するため

導入されたバージョン:
1.0
バージョン:
1.0
作成者:
S.Fujii

入れ子のクラスの概要
 
クラス java.lang.Thread から継承された入れ子のクラス/インタフェース
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
フィールドの概要
 
クラス java.lang.Thread から継承されたフィールド
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
コンストラクタの概要
InputStreamThread(java.io.InputStream lInputStream)
          コンストラクター
 
メソッドの概要
 LogInputStream getLogInputStream()
          InputStreamから取得した文字列を格納するStreamを取得する
 boolean isWatched()
          監視しているかどうか
 void run()
          実行
 void stopThread()
          監視を中断する
※ 即時には止まりません。
 
クラス java.lang.Thread から継承されたメソッド
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

コンストラクタの詳細

InputStreamThread

public InputStreamThread(java.io.InputStream lInputStream)
コンストラクター

パラメータ:
lInputStream - 監視するInputStream
メソッドの詳細

getLogInputStream

public LogInputStream getLogInputStream()
InputStreamから取得した文字列を格納するStreamを取得する

戻り値:
InputStreamから取得した文字列を格納するStream

isWatched

public boolean isWatched()
監視しているかどうか

戻り値:
true : 監視中 / false : 非監視

stopThread

public void stopThread()
監視を中断する
※ 即時には止まりません。


run

public void run()
実行

定義:
インタフェース java.lang.Runnable 内の run
オーバーライド:
クラス java.lang.Thread 内の run
関連項目:
Runnable.run()