@Override
	public void run() {
		if (input_stream == null)
			return;

		int count;
		try {
			if (buffer == null)
				buffer = new byte[BuildConfig.BUFFER_SIZE];
			// if (stream_processor != null)
			// stream_processor.reset();
			while ((count = input_stream.read(buffer)) != -1) {
				if (stream_processor != null)
					stream_processor.processBuffer(buffer, count);
			}
			if (result_listener != null)
				result_listener.onResultObtained(null);
		} catch (Exception e) {
			// e.printStackTrace(System.out);
			if (exception_handler != null)
				exception_handler.onException(e);
		}
	}