|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sleepycat.je.utilint.CmdUtil
public class CmdUtil
Convenience methods for command line utilities.
| Constructor Summary | |
|---|---|
CmdUtil()
|
|
| Method Summary | |
|---|---|
static void |
formatEntry(StringBuffer sb,
byte[] entryData,
boolean formatUsingPrintable)
|
static String |
getArg(String[] argv,
int whichArg)
|
static String |
getJavaCommand(Class cls)
Returns a description of the java command for running a utility, without arguments. |
static EnvironmentImpl |
makeUtilityEnvironment(File envHome,
boolean readOnly)
Create an environment suitable for utilities. |
static long |
readLongNumber(String longVal)
Parse a string into a long. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CmdUtil()
| Method Detail |
|---|
public static String getArg(String[] argv,
int whichArg)
throws IllegalArgumentException
IllegalArgumentExceptionpublic static long readLongNumber(String longVal)
public static void formatEntry(StringBuffer sb,
byte[] entryData,
boolean formatUsingPrintable)
public static EnvironmentImpl makeUtilityEnvironment(File envHome,
boolean readOnly)
throws DatabaseException
DatabaseExceptionpublic static String getJavaCommand(Class cls)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||