ReaderWorker.java 836 Bytes
Newer Older
Kim Gyeongeun committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
package jp.agentec.sinaburocast.common.proc;

import java.io.BufferedReader;

/**
 * ReaderWorkerクラス<br>
 * 標準出力の読み出し処理をカスタマイズするためのクラス
 * 
 * @author tsukada
 *
 */
public abstract class ReaderWorker implements Runnable {
	protected BufferedReader bufferedReader;
	protected String commandStr;
	protected boolean finish = false;

	public ReaderWorker() {
	}

	
	public BufferedReader getBufferedReader() {
		return bufferedReader;
	}


	public void setBufferedReader(BufferedReader bufferedReader) {
		this.bufferedReader = bufferedReader;
	}


	public String getCommandStr() {
		return commandStr;
	}


	public void setCommandStr(String commandStr) {
		this.commandStr = commandStr;
	}

	/**
	 * 終了フラグを立てる
	 */
	public void finish() {
		finish = true;
	}


}