| java.lang.Object collections.access.AccessExample
AccessExample | public class AccessExample implements Runnable(Code) | | AccesssExample mirrors the functionality of a class by the same name
used to demonstrate the com.sleepycat.je Java API. This version makes
use of the new com.sleepycat.collections.* collections style classes to make
life easier.
author: Gregory Burd |
AccessExample | public AccessExample(Environment env, String databaseName) throws Exception(Code) | | Constructor for the AccessExample object
Parameters: env - Description of the Parameter exception: Exception - Description of the Exception |
askForLine | String askForLine(InputStreamReader reader, PrintStream out, String prompt)(Code) | | Prompts for a line, and keeps prompting until a non blank line is
returned. Returns null on error.
Parameters: reader - stream from which to read user input Parameters: out - stream on which to prompt for user input Parameters: prompt - prompt to use to solicit input the string supplied by the user |
getLine | String getLine(InputStreamReader reader)(Code) | | Read a single line. Gets the line attribute of the AccessExample object
Not terribly efficient, but does the job. Works for reading a line from
stdin or a file.
Parameters: reader - stream from which to read the line either a String or null on EOF, if EOF appears in themiddle of a line, returns that line, then null on next call. |
main | public static void main(String[] argv)(Code) | | The main program for the AccessExample class
Parameters: argv - The command line arguments |
run | public void run()(Code) | | Main processing method for the AccessExample object
|
usage | public static void usage()(Code) | | |
|
|