public class CmdUtil extends Object
| Constructor and Description |
|---|
CmdUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
formatEntry(StringBuilder 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.
|
static long |
readLsn(String lsnVal)
Convert a string that is either 0xabc or 0xabc/0x123 into an lsn.
|
public static String getArg(String[] argv, int whichArg) throws IllegalArgumentException
IllegalArgumentException - via mainpublic static long readLongNumber(String longVal)
public static long readLsn(String lsnVal)
public static void formatEntry(StringBuilder sb, byte[] entryData, boolean formatUsingPrintable)
public static EnvironmentImpl makeUtilityEnvironment(File envHome, boolean readOnly) throws EnvironmentNotFoundException, EnvironmentLockedException
Copyright © 2024. All rights reserved.