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 |
JSON_ONLY |
RAW |
READ_ANY |
TEXT |
YAML |
YAML_ONLY |
| Modifier and Type | Method and Description |
|---|---|
@Nullable Map<String,Object> |
asMap(@NotNull CharSequence cs) |
String |
asString(Object marshallable) |
<T> T |
fromFile(@NotNull Class<T> expectedType,
String filename) |
<T> T |
fromFile(String filename) |
<T> @NotNull Map<String,T> |
fromFileAsMap(String filename,
@NotNull Class<T> tClass) |
<T> T |
fromString(@NotNull CharSequence cs)
deserializes with an optimistic cast
|
<T> T |
fromString(Class<T> tClass,
@NotNull CharSequence cs)
deserializes as a given class
|
boolean |
isAvailable() |
boolean |
isText() |
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> @NotNull Stream<T> |
streamFromBytes(@NotNull Class<T> expectedType,
net.openhft.chronicle.bytes.Bytes<?> b) |
<T> @NotNull Stream<T> |
streamFromFile(@NotNull Class<T> expectedType,
String filename) |
<T> @NotNull Stream<T> |
streamFromFile(String filename) |
void |
toFile(@NotNull String filename,
WriteMarshallable marshallable) |
<T extends Marshallable> |
toFileAsMap(@NotNull String filename,
@NotNull Map<String,T> map) |
<T extends Marshallable> |
toFileAsMap(@NotNull String filename,
@NotNull Map<String,T> map,
boolean compact) |
static WireType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static @Nullable WireType |
valueOf(@Nullable 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 JSON_ONLY
public static final WireType YAML
public static final WireType YAML_ONLY
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
@NotNull CharSequence cs)
throws net.openhft.chronicle.core.io.InvalidMarshallableException
T - the type to expectcs - text to deserializeClassCastException - if the object is not a Tnet.openhft.chronicle.core.io.InvalidMarshallableExceptionpublic <T> T fromString(Class<T> tClass, @NotNull @NotNull CharSequence cs) throws net.openhft.chronicle.core.io.InvalidMarshallableException
tClass - to serialize ascs - text to deserializenet.openhft.chronicle.core.io.InvalidMarshallableException@NotNull public <T> T fromFile(String filename) throws IOException, net.openhft.chronicle.core.io.InvalidMarshallableException
IOExceptionnet.openhft.chronicle.core.io.InvalidMarshallableException@Nullable
public <T> T fromFile(@NotNull
@NotNull Class<T> expectedType,
String filename)
throws IOException,
net.openhft.chronicle.core.io.InvalidMarshallableException
IOExceptionnet.openhft.chronicle.core.io.InvalidMarshallableException@NotNull public <T> @NotNull Stream<T> streamFromFile(String filename) throws IOException
IOException@NotNull public <T> @NotNull Stream<T> streamFromFile(@NotNull @NotNull Class<T> expectedType, String filename) throws IOException
IOException@NotNull public <T> @NotNull Stream<T> streamFromBytes(@NotNull @NotNull Class<T> expectedType, net.openhft.chronicle.bytes.Bytes<?> b)
@NotNull public <T> @NotNull Map<String,T> fromFileAsMap(String filename, @NotNull @NotNull Class<T> tClass) throws IOException, net.openhft.chronicle.core.io.InvalidMarshallableException
IOExceptionnet.openhft.chronicle.core.io.InvalidMarshallableExceptionpublic <T extends Marshallable> void toFileAsMap(@NotNull @NotNull String filename, @NotNull @NotNull Map<String,T> map) throws IOException, net.openhft.chronicle.core.io.InvalidMarshallableException
IOExceptionnet.openhft.chronicle.core.io.InvalidMarshallableExceptionpublic <T extends Marshallable> void toFileAsMap(@NotNull @NotNull String filename, @NotNull @NotNull Map<String,T> map, boolean compact) throws IOException, net.openhft.chronicle.core.io.InvalidMarshallableException
IOExceptionnet.openhft.chronicle.core.io.InvalidMarshallableExceptionpublic void toFile(@NotNull
@NotNull String filename,
WriteMarshallable marshallable)
throws IOException,
net.openhft.chronicle.core.io.InvalidMarshallableException
IOExceptionnet.openhft.chronicle.core.io.InvalidMarshallableException@Nullable public @Nullable Map<String,Object> asMap(@NotNull @NotNull CharSequence cs) throws net.openhft.chronicle.core.io.InvalidMarshallableException
net.openhft.chronicle.core.io.InvalidMarshallableExceptionpublic void licenceCheck()
licenceCheck in interface net.openhft.chronicle.core.LicenceCheckpublic boolean isAvailable()
isAvailable in interface net.openhft.chronicle.core.LicenceCheckpublic boolean isText()
Copyright © 2023. All rights reserved.