no io ho un codice di questo tipo

public class prova extends Thread
{
DataInputStream is;
PrintStream os;

public prova(OutputStream os)
{
this.is = new DataInputStream(System.in);
this.os = new PrintStream(os);
}
public void run()
{
String line;
try
{
while(true)
{
line = is.readLine();
....
...
..