Code example for BufferedInputStream

Methods: available, read

0
		return result;
	} 
 
	private String checkForErrors() throws IOException, Exception
	{ 
		if (bisError.available() > 0)
		{ 
			byte[] buff = new byte[bisError.available()];
			bisError.read(buff);
			String error = new String(buff);
			return error;
		} 
		return ""; 
	} 
 
	/** 
	 * Allows the outside to see if the process is still running or not. 
	 *  
	 * @return 
	 */ 
	public boolean isRunning()