public enum ChronicleTools extends Enum<ChronicleTools>
| Modifier and Type | Method and Description |
|---|---|
static String |
asString(ByteBuffer bb) |
static String |
asString(ExcerptCommon excerpt)
Take a text copy of the contents of the Excerpt without changing it's position.
|
static String |
asString(ExcerptCommon excerpt,
long position)
Take a text copy of the contents of the Excerpt without changing it's position.
|
static String |
asString(ExcerptCommon excerpt,
long position,
long length)
Take a text copy of the contents of the Excerpt without changing it's position.
|
static void |
deleteDirOnExit(String dirPath) |
static void |
deleteOnExit(String basePath)
Delete a chronicle now and on exit, for testing
|
static ChronicleTools |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ChronicleTools[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
static void |
warmup() |
public static ChronicleTools[] values()
for (ChronicleTools c : ChronicleTools.values()) System.out.println(c);
public static ChronicleTools valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant
with the specified nameNullPointerException - if the argument is nullpublic static void deleteOnExit(String basePath)
basePath - of the chroniclepublic static void deleteDirOnExit(String dirPath)
@NotNull public static String asString(@NotNull ByteBuffer bb)
@NotNull public static String asString(@NotNull ExcerptCommon excerpt)
excerpt - to get text from@NotNull public static String asString(@NotNull ExcerptCommon excerpt, long position)
excerpt - to get text fromposition - the position to get text from@NotNull public static String asString(@NotNull ExcerptCommon excerpt, long position, long length)
excerpt - to get text fromposition - the position to get text fromlength - the maximum lengthpublic static void warmup()
Copyright © 2014. All Rights Reserved.