/*
This file is part of Cammotion.

    Cammotion is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    Cammotion is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with Cammotion.  If not, see .
*/
package cammotion;
import java.io.*;
public class OutputStreamHandler extends Thread{
	private BufferedReader stream;
	private String line;
	public OutputStreamHandler(InputStream outputStream){
	this.stream = new BufferedReader(new InputStreamReader( outputStream ) );
	}
	
	
	public void run(){
		try {
			while ( ( line = stream.readLine() )!= null){
				//do nothing...we don't want the output because of that:
				//[mjpeg @ 0x6978d8]error dc
				//[mjpeg @ 0x6978d8]error y=29 x=0

				
			}
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
}