} catch (IOException ioe) { ioe.printStackTrace();
strBuf.append( (char)c );
	public static void dotToPNG( String dotCode, String filename ) {		// Get the dot binary's location		Parameters params = Parameters.getInstance();		String dotBinary = params.getProperty( "eleminator.dotPath" );		String[] cmdString = {dotBinary, "-Tpng", "-o" + filename};		Runtime rt = Runtime.getRuntime();		Process p = null;		OutputStreamWriter out = null;		InputStreamReader in = null;		BufferedReader bufRead = null;		StringBuffer strBuf = new StringBuffer();		int c;				// Run dot		try {			p = rt.exec( cmdString );			// Feed the dot code into the dot binary's standard input			out = new OutputStreamWriter( p.getOutputStream() );			in = new InputStreamReader( p.getInputStream() );			out.write( dotCode );			out.close();			bufRead = new BufferedReader( in );			while (true) {				c = in.read();				if (c == -1) {					break;				}				strBuf.append( (char)c );			}		} catch (IOException ioe) {			ioe.printStackTrace();		}	}