Warning:\n"; echo "$msg\n"; } function fatal($msg) { echo "

Error:

\n"; echo "$msg\n"; echo ""; exit; } function echof($msg) { echo($msg); flush(); } function foo($value, $key) { echof("value:$value ($key)
"); return $value == "object"; } function perform_action() { if (!isset($_REQUEST['classname'])) { return; } else { $class = strtolower($_REQUEST['classname']); echof("looking for $class:
"); // read classes $datafile_fd = fopen("java.classes.j2se", "r"); $classes2se = array(); while (!feof($datafile_fd) && ($line = fgets($datafile_fd, 4096))) { $ary = explode("\t", $line); $classes2se[$ary[0]] = trim($ary[1]); } fclose($datafile_fd); $datafile_fd = fopen("java.classes.j2ee", "r"); $classes2ee = array(); while (!feof($datafile_fd) && ($line = fgets($datafile_fd, 4096))) { $ary = explode("\t", $line); $classes2ee[$ary[0]] = trim($ary[1]); } fclose($datafile_fd); $datafile_fd = fopen("java.classes.httpclient", "r"); $classeshttpclient = array(); while (!feof($datafile_fd) && ($line = fgets($datafile_fd, 4096))) { $ary = explode("\t", $line); $classeshttpclient[$ary[0]] = trim($ary[1]); } fclose($datafile_fd); $matches2se = array(); while (($gotcha = array_search($class, $classes2se)) > -1) { array_push($matches2se, $gotcha); unset($classes2se[$gotcha]); } $matches2ee = array(); while (($gotcha = array_search($class, $classes2ee)) > -1) { array_push($matches2ee, $gotcha); unset($classes2ee[$gotcha]); } $matcheshttpclient = array(); while (($gotcha = array_search($class, $classeshttpclient)) > -1) { array_push($matcheshttpclient, $gotcha); unset($classeshttpclient[$gotcha]); } $baseurl2se = isset($_REQUEST['baseurl2se']) ? $_REQUEST['baseurl2se'] : "http://java.sun.com/j2se/1.4.2/docs/api/"; $baseurl2ee = isset($_REQUEST['baseurl2ee']) ? $_REQUEST['baseurl2ee'] : "http://java.sun.com/j2ee/1.4/docs/api/"; $baseurlhttpclient = isset($_REQUEST['baseurlhttpclient']) ? $_REQUEST['baseurlhttpclient'] : "http://jakarta.apache.org/commons/httpclient/apidocs/"; if (count($matches2se) + count($matches2ee) + count($matcheshttpclient) == 0) { echo("no match
"); } else if (count($matches2se) == 1) { echo(""); } else if (count($matches2ee) == 1) { echo(""); } else if (count($matcheshttpclient) == 1) { echo(""); } else { echo("Ambiguous:"); echo(""); } } } header("Content-Type: text/html; charset=ISO-8859-1"); ?> Java API show

Java API show

Classname:
Name: