| java.lang.Object bdd.search.query.DBQuery
DBQuery | public class DBQuery (Code) | | Written by Tim Macinta 1997
Distributed under the GNU Public License
(a copy of which is enclosed with the source).
This class searches the database for the given query.
|
Method Summary | |
void | addResultsToVector(String the_query, Vector v) Searches for the word contained in the database and adds a hyperlinked
String describing each match to the Vector "v" with the most relevant
matches being added first. | public void | dumpResults(OutputStream stream) | public static void | main(String arg) This is the method that is called when this class is invoked from the
command line. | String | makeAlphaNumeric(String word) Returns a copy of "word" where all non-alphanumeric characters are
converted to spaces (ascii 32). | void | pipe(InputStream in, OutputStream out) Pipes "in" to "out" until "in" is exhausted then closes "in". |
addResultsToVector | void addResultsToVector(String the_query, Vector v) throws IOException(Code) | | Searches for the word contained in the database and adds a hyperlinked
String describing each match to the Vector "v" with the most relevant
matches being added first.
|
main | public static void main(String arg)(Code) | | This is the method that is called when this class is invoked from the
command line. If this method is called, the first argument (arg[0])
is used as a new query and the results are piped to standard output.
This could be used as a means for providing a cgi interface to the
search database, although it isn't as efficient as running the
custom web server that was built for this since running this via
cgi requires starting a new copy of the Java Virtual Machine each
time it is run.
|
makeAlphaNumeric | String makeAlphaNumeric(String word)(Code) | | Returns a copy of "word" where all non-alphanumeric characters are
converted to spaces (ascii 32).
|
|
|