public enum WireType extends Enum<WireType> implements Function<net.openhft.chronicle.bytes.Bytes,Wire>, net.openhft.chronicle.core.LicenceCheck
| Enum Constant and Description |
|---|
BINARY
Use this ONLY if intend to use Delta and Binary.
|
BINARY_LIGHT
Use this when only need to use Binary (does not support DeltaWire)
|
COMPRESSED_BINARY |
CSV |
DEFAULT_ZERO_BINARY |
DELTA_BINARY |
FIELDLESS_BINARY |
JSON |
RAW |
READ_ANY |
TEXT |
| Modifier and Type | Method and Description |
|---|---|
Map<String,Object> |
asMap(CharSequence cs) |
String |
asString(Object marshallable) |
<T> T |
fromFile(Class<T> expectedType,
String filename) |
<T> T |
fromFile(String filename) |
<T> Map<String,T> |
fromFileAsMap(String filename,
Class<T> tClass) |
<T> T |
fromString(CharSequence cs) |
<T> T |
fromString(Class<T> tClass,
CharSequence cs) |
boolean |
isAvailable() |
void |
licenceCheck() |
Supplier<net.openhft.chronicle.core.values.BooleanValue> |
newBooleanReference() |
Supplier<net.openhft.chronicle.core.values.IntValue> |
newIntReference() |
Supplier<net.openhft.chronicle.core.values.LongArrayValues> |
newLongArrayReference() |
Supplier<net.openhft.chronicle.core.values.LongValue> |
newLongReference() |
Supplier<net.openhft.chronicle.core.values.TwoLongValue> |
newTwoLongReference() |
<T> Stream<T> |
streamFromBytes(Class<T> expectedType,
net.openhft.chronicle.bytes.Bytes b) |
<T> Stream<T> |
streamFromFile(Class<T> expectedType,
String filename) |
<T> Stream<T> |
streamFromFile(String filename) |
void |
toFile(String filename,
WriteMarshallable marshallable) |
<T extends Marshallable> |
toFileAsMap(String filename,
Map<String,T> map) |
<T extends Marshallable> |
toFileAsMap(String filename,
Map<String,T> map,
boolean compact) |
static WireType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static WireType |
valueOf(Wire wire) |
static WireType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final WireType TEXT
public static final WireType BINARY
BINARY_LIGHTpublic static final WireType BINARY_LIGHT
public static final WireType DEFAULT_ZERO_BINARY
public static final WireType DELTA_BINARY
public static final WireType FIELDLESS_BINARY
public static final WireType COMPRESSED_BINARY
public static final WireType JSON
public static final WireType RAW
public static final WireType CSV
public static final WireType READ_ANY
public static WireType[] values()
for (WireType c : WireType.values()) System.out.println(c);
public static WireType 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 Supplier<net.openhft.chronicle.core.values.IntValue> newIntReference()
public Supplier<net.openhft.chronicle.core.values.BooleanValue> newBooleanReference()
public Supplier<net.openhft.chronicle.core.values.LongValue> newLongReference()
public Supplier<net.openhft.chronicle.core.values.TwoLongValue> newTwoLongReference()
public Supplier<net.openhft.chronicle.core.values.LongArrayValues> newLongArrayReference()
@Nullable
public <T> T fromString(@NotNull
CharSequence cs)
public <T> T fromString(Class<T> tClass, @NotNull CharSequence cs)
@NotNull public <T> T fromFile(String filename) throws IOException
IOException@Nullable
public <T> T fromFile(@NotNull
Class<T> expectedType,
String filename)
throws IOException
IOException@NotNull public <T> Stream<T> streamFromFile(String filename) throws IOException
IOException@NotNull public <T> Stream<T> streamFromFile(@NotNull Class<T> expectedType, String filename) throws IOException
IOException@NotNull public <T> Stream<T> streamFromBytes(@NotNull Class<T> expectedType, net.openhft.chronicle.bytes.Bytes b)
@NotNull public <T> Map<String,T> fromFileAsMap(String filename, @NotNull Class<T> tClass) throws IOException
IOExceptionpublic <T extends Marshallable> void toFileAsMap(@NotNull String filename, @NotNull Map<String,T> map) throws IOException
IOExceptionpublic <T extends Marshallable> void toFileAsMap(@NotNull String filename, @NotNull Map<String,T> map, boolean compact) throws IOException
IOExceptionpublic void toFile(@NotNull
String filename,
WriteMarshallable marshallable)
throws IOException
IOException@Nullable public Map<String,Object> asMap(@NotNull CharSequence cs)
public void licenceCheck()
licenceCheck in interface net.openhft.chronicle.core.LicenceCheckpublic boolean isAvailable()
isAvailable in interface net.openhft.chronicle.core.LicenceCheckCopyright © 2019. All rights reserved.