public void run(){
		InputStreamReader reader = new InputStreamReader(this.stream);
		BufferedReader bufferedReader = new BufferedReader(reader);
		String line = null;
		do {
			try {
				line = bufferedReader.readLine();
				if(line!=null){
					if(type==Type.STDERR){
						System.err.println(line);
					} else if(type==Type.STDOUT){
						System.out.println(line);
					}
				}
			} catch (IOException e) {
				e.printStackTrace();
			}
		}while(line!=null);
	}