package form.run;

import java.lang.*;
import java.io.*;

public class ReadThread extends Thread{
	BufferedInputStream is;

	public ReadThread(InputStream is){
		this.is = new BufferedInputStream(is);
	}

	public void run(){
		byte[] b = new byte[80]; 
		boolean loggedin = false;
		try{
			while (is.available() > 0){
				int c =is.read(b,0,80);
				System.out.println(new String(b,0,c));
			}
			is.close();
		}catch(IOException e){e.printStackTrace();}
	}
}
