public enum Wires extends Enum<Wires>
| Modifier and Type | Field and Description |
|---|---|
static List<Function<Class,SerializationStrategy>> |
CLASS_STRATEGY_FUNCTIONS |
static int |
END_OF_DATA |
static boolean |
GENERATE_TUPLES |
static int |
LENGTH_MASK |
static int |
META_DATA |
static net.openhft.chronicle.bytes.Bytes<?> |
NO_BYTES |
static int |
NOT_COMPLETE |
static int |
NOT_COMPLETE_UNKNOWN_LENGTH |
static int |
NOT_INITIALIZED |
static int |
SPB_HEADER_SIZE |
static int |
UNKNOWN_LENGTH |
| Modifier and Type | Method and Description |
|---|---|
static @NotNull net.openhft.chronicle.bytes.Bytes<?> |
acquireAnotherBytes()
Deprecated.
Use
acquireBytesScoped() instead |
static @NotNull Wire |
acquireBinaryWire()
Deprecated.
Use
acquireBinaryWireScoped() instead |
static net.openhft.chronicle.core.scoped.ScopedResource<Wire> |
acquireBinaryWireScoped() |
static @NotNull net.openhft.chronicle.bytes.Bytes<?> |
acquireBytes()
Deprecated.
Use
acquireBytesScoped() instead |
static @NotNull net.openhft.chronicle.core.scoped.ScopedResource<net.openhft.chronicle.bytes.Bytes<?>> |
acquireBytesScoped() |
static boolean |
acquireLock(@NotNull net.openhft.chronicle.bytes.BytesStore store,
long position) |
static StringBuilder |
acquireStringBuilder()
Deprecated.
Use
acquireStringBuilderScoped() instead |
static net.openhft.chronicle.core.scoped.ScopedResource<StringBuilder> |
acquireStringBuilderScoped() |
static @NotNull net.openhft.chronicle.bytes.Bytes |
asBinary(@NotNull WireIn wireIn)
Deprecated.
Use
asBinary(WireIn, Bytes) instead |
static net.openhft.chronicle.bytes.Bytes<?> |
asBinary(@NotNull WireIn wireIn,
net.openhft.chronicle.bytes.Bytes<?> output) |
static @NotNull net.openhft.chronicle.bytes.Bytes |
asJson(@NotNull WireIn wireIn)
Deprecated.
Use
asJson(WireIn, Bytes) instead |
static net.openhft.chronicle.bytes.Bytes<?> |
asJson(@NotNull WireIn wireIn,
net.openhft.chronicle.bytes.Bytes<?> output) |
static @NotNull CharSequence |
asText(@NotNull WireIn wireIn)
Deprecated.
Use
asText(WireIn, Bytes) instead |
static @NotNull CharSequence |
asText(@NotNull WireIn wireIn,
net.openhft.chronicle.bytes.Bytes<?> output) |
static @NotNull BinaryWire |
binaryWireForRead(net.openhft.chronicle.bytes.Bytes<?> in,
long position,
long length) |
static @NotNull BinaryWire |
binaryWireForWrite(net.openhft.chronicle.bytes.Bytes<?> in,
long position,
long length) |
static <T> T |
copyTo(Object source,
T target) |
static <T extends Marshallable> |
deepCopy(T marshallable) |
static boolean |
dtoInterface(Class clazz) |
static boolean |
exceedsMaxLength(long length) |
static FieldInfo |
fieldInfo(@NotNull Class aClass,
String name) |
static @NotNull Map<String,FieldInfo> |
fieldInfoMap(@NotNull Class aClass) |
static @NotNull List<FieldInfo> |
fieldInfos(@NotNull Class aClass) |
static String |
fromAlignedSizePrefixedBlobs(@NotNull net.openhft.chronicle.bytes.Bytes<?> bytes) |
static String |
fromSizePrefixedBlobs(@NotNull net.openhft.chronicle.bytes.Bytes<?> bytes)
This decodes some Bytes where the first 4-bytes is the length.
|
static String |
fromSizePrefixedBlobs(@NotNull net.openhft.chronicle.bytes.Bytes<?> bytes,
boolean abbrev) |
static String |
fromSizePrefixedBlobs(@NotNull net.openhft.chronicle.bytes.Bytes<?> bytes,
boolean padding,
boolean abbrev) |
static String |
fromSizePrefixedBlobs(@NotNull net.openhft.chronicle.bytes.Bytes<?> bytes,
long position) |
static String |
fromSizePrefixedBlobs(@NotNull net.openhft.chronicle.bytes.Bytes<?> bytes,
long position,
boolean padding) |
static String |
fromSizePrefixedBlobs(@NotNull net.openhft.chronicle.bytes.Bytes<?> bytes,
long position,
long length) |
static String |
fromSizePrefixedBlobs(@NotNull DocumentContext dc) |
static String |
fromSizePrefixedBlobs(@NotNull WireIn wireIn) |
static String |
fromSizePrefixedBlobs(@NotNull WireIn wireIn,
boolean abbrev) |
static <T> T |
getField(@NotNull Object o,
String name,
Class<T> tClass) |
static long |
getLongField(@NotNull Object o,
String name) |
static void |
init() |
static boolean |
isData(int len) |
static boolean |
isEndOfFile(int num) |
static boolean |
isEquals(@NotNull Object o1,
@NotNull Object o2) |
static boolean |
isInternal(@NotNull Object value) |
static boolean |
isKnownLength(int len) |
static boolean |
isNotComplete(int header) |
static boolean |
isNotInitialized(int len) |
static boolean |
isReady(int header) |
static boolean |
isReadyData(int header) |
static boolean |
isReadyMetaData(int len) |
static int |
lengthOf(int len) |
static <E> E |
object0(ValueIn in,
E using,
@Nullable Class clazz) |
static <E> E |
object0(ValueIn in,
E using,
@Nullable Class clazz,
boolean bestEffort) |
static <E> E |
object1(ValueIn in,
E using,
@Nullable Class clazz,
boolean bestEffort) |
static <E> E |
objectDate(ValueIn in,
E using) |
static <E> E |
objectMap(ValueIn in,
E using,
@Nullable Class clazz,
@NotNull SerializationStrategy<E> strategy) |
static <E> E |
objectSequence(ValueIn in,
E using,
@Nullable Class clazz,
SerializationStrategy<E> strategy) |
static <T> T |
project(Class<T> tClass,
Object source) |
static void |
readMarshallable(Class<?> clazz,
@NotNull Object marshallable,
@NotNull WireIn wire,
boolean overwrite) |
static void |
readMarshallable(@NotNull Object marshallable,
@NotNull WireIn wire,
boolean overwrite) |
static long |
readWire(@NotNull WireIn wireIn,
long size,
@NotNull ReadMarshallable readMarshallable) |
static <T> T |
recordAsYaml(Class<T> tClass,
PrintStream ps)
Creates and returns a proxy of the specified interface.
|
static int |
removeMaskedTidFromHeader(int header) |
static void |
replay(String file,
Object obj)
Reads the content of a specified Yaml file and feeds it to the specified object.
|
static void |
reset(@NotNull Object o) |
static void |
setField(@NotNull Object o,
String name,
Object value) |
static void |
setLongField(@NotNull Object o,
String name,
long value) |
static int |
toIntU30(long l,
@NotNull String error) |
static <T> T |
tupleFor(Class<T> tClass,
String typeName) |
static String |
typeNameFor(net.openhft.chronicle.core.pool.ClassLookup classLookup,
@NotNull Object value) |
static String |
typeNameFor(@NotNull Object value) |
static Wires |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Wires[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
static <T extends WriteMarshallable> |
writeData(@NotNull WireOut wireOut,
T writer) |
static void |
writeKey(@NotNull Object marshallable,
net.openhft.chronicle.bytes.Bytes<?> bytes) |
static void |
writeMarshallable(@NotNull Object marshallable,
@NotNull WireOut wire) |
static void |
writeMarshallable(@NotNull Object marshallable,
@NotNull WireOut wire,
boolean writeDefault) |
static void |
writeMarshallable(@NotNull Object marshallable,
@NotNull WireOut wire,
@NotNull Object previous,
boolean copy) |
public static final int LENGTH_MASK
public static final int NOT_COMPLETE
public static final int META_DATA
public static final int UNKNOWN_LENGTH
public static final int NOT_COMPLETE_UNKNOWN_LENGTH
public static final int END_OF_DATA
public static final int NOT_INITIALIZED
public static final net.openhft.chronicle.bytes.Bytes<?> NO_BYTES
public static final int SPB_HEADER_SIZE
public static final List<Function<Class,SerializationStrategy>> CLASS_STRATEGY_FUNCTIONS
public static boolean GENERATE_TUPLES
public static Wires[] values()
for (Wires c : Wires.values()) System.out.println(c);
public static Wires 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 init()
public static <T> T recordAsYaml(Class<T> tClass, PrintStream ps)
T - type of the specified interfacetClass - the specified interfaceps - the PrintStream used to write output data into as Yaml formatpublic static void replay(String file, Object obj) throws IOException, net.openhft.chronicle.core.io.InvalidMarshallableException
file - name of the input Yaml fileobj - the object that replays the data in the specified fileIOException - is thrown if an IO operation failsnet.openhft.chronicle.core.io.InvalidMarshallableExceptionpublic static String fromSizePrefixedBlobs(@NotNull @NotNull net.openhft.chronicle.bytes.Bytes<?> bytes)
bytes - to decodepublic static String fromAlignedSizePrefixedBlobs(@NotNull @NotNull net.openhft.chronicle.bytes.Bytes<?> bytes)
public static String fromSizePrefixedBlobs(@NotNull @NotNull net.openhft.chronicle.bytes.Bytes<?> bytes, boolean abbrev)
public static String fromSizePrefixedBlobs(@NotNull @NotNull net.openhft.chronicle.bytes.Bytes<?> bytes, long position)
public static String fromSizePrefixedBlobs(@NotNull @NotNull net.openhft.chronicle.bytes.Bytes<?> bytes, long position, boolean padding)
public static String fromSizePrefixedBlobs(@NotNull @NotNull net.openhft.chronicle.bytes.Bytes<?> bytes, boolean padding, boolean abbrev)
public static String fromSizePrefixedBlobs(@NotNull @NotNull DocumentContext dc)
public static String fromSizePrefixedBlobs(@NotNull @NotNull WireIn wireIn, boolean abbrev)
@Deprecated @NotNull public static @NotNull CharSequence asText(@NotNull @NotNull WireIn wireIn)
asText(WireIn, Bytes) instead@NotNull public static @NotNull CharSequence asText(@NotNull @NotNull WireIn wireIn, net.openhft.chronicle.bytes.Bytes<?> output)
@Deprecated @NotNull public static @NotNull net.openhft.chronicle.bytes.Bytes asBinary(@NotNull @NotNull WireIn wireIn) throws net.openhft.chronicle.core.io.InvalidMarshallableException
asBinary(WireIn, Bytes) insteadnet.openhft.chronicle.core.io.InvalidMarshallableExceptionpublic static net.openhft.chronicle.bytes.Bytes<?> asBinary(@NotNull
@NotNull WireIn wireIn,
net.openhft.chronicle.bytes.Bytes<?> output)
throws net.openhft.chronicle.core.io.InvalidMarshallableException
net.openhft.chronicle.core.io.InvalidMarshallableException@Deprecated @NotNull public static @NotNull net.openhft.chronicle.bytes.Bytes asJson(@NotNull @NotNull WireIn wireIn) throws net.openhft.chronicle.core.io.InvalidMarshallableException
asJson(WireIn, Bytes) insteadnet.openhft.chronicle.core.io.InvalidMarshallableExceptionpublic static net.openhft.chronicle.bytes.Bytes<?> asJson(@NotNull
@NotNull WireIn wireIn,
net.openhft.chronicle.bytes.Bytes<?> output)
throws net.openhft.chronicle.core.io.InvalidMarshallableException
net.openhft.chronicle.core.io.InvalidMarshallableException@Deprecated public static StringBuilder acquireStringBuilder()
acquireStringBuilderScoped() insteadpublic static net.openhft.chronicle.core.scoped.ScopedResource<StringBuilder> acquireStringBuilderScoped()
public static int lengthOf(int len)
public static boolean isReady(int header)
public static boolean isNotComplete(int header)
public static boolean isReadyData(int header)
public static boolean isData(int len)
public static boolean isReadyMetaData(int len)
public static boolean isKnownLength(int len)
public static boolean isNotInitialized(int len)
public static int toIntU30(long l,
@NotNull
@NotNull String error)
public static boolean acquireLock(@NotNull
@NotNull net.openhft.chronicle.bytes.BytesStore store,
long position)
public static boolean exceedsMaxLength(long length)
public static <T extends WriteMarshallable> long writeData(@NotNull @NotNull WireOut wireOut, @NotNull T writer) throws net.openhft.chronicle.core.io.InvalidMarshallableException
net.openhft.chronicle.core.io.InvalidMarshallableExceptionpublic static long readWire(@NotNull
@NotNull WireIn wireIn,
long size,
@NotNull
@NotNull ReadMarshallable readMarshallable)
throws net.openhft.chronicle.core.io.InvalidMarshallableException
net.openhft.chronicle.core.io.InvalidMarshallableException@Deprecated @NotNull public static @NotNull net.openhft.chronicle.bytes.Bytes<?> acquireBytes()
acquireBytesScoped() instead@NotNull public static @NotNull net.openhft.chronicle.core.scoped.ScopedResource<net.openhft.chronicle.bytes.Bytes<?>> acquireBytesScoped()
@Deprecated @NotNull public static @NotNull Wire acquireBinaryWire()
acquireBinaryWireScoped() insteadpublic static net.openhft.chronicle.core.scoped.ScopedResource<Wire> acquireBinaryWireScoped()
@Deprecated @NotNull public static @NotNull net.openhft.chronicle.bytes.Bytes<?> acquireAnotherBytes()
acquireBytesScoped() insteadpublic static String fromSizePrefixedBlobs(@NotNull @NotNull net.openhft.chronicle.bytes.Bytes<?> bytes, long position, long length)
public static void readMarshallable(@NotNull
@NotNull Object marshallable,
@NotNull
@NotNull WireIn wire,
boolean overwrite)
throws net.openhft.chronicle.core.io.InvalidMarshallableException
net.openhft.chronicle.core.io.InvalidMarshallableExceptionpublic static void readMarshallable(Class<?> clazz, @NotNull @NotNull Object marshallable, @NotNull @NotNull WireIn wire, boolean overwrite) throws net.openhft.chronicle.core.io.InvalidMarshallableException
net.openhft.chronicle.core.io.InvalidMarshallableExceptionpublic static void writeMarshallable(@NotNull
@NotNull Object marshallable,
@NotNull
@NotNull WireOut wire)
throws net.openhft.chronicle.core.io.InvalidMarshallableException
net.openhft.chronicle.core.io.InvalidMarshallableExceptionpublic static void writeMarshallable(@NotNull
@NotNull Object marshallable,
@NotNull
@NotNull WireOut wire,
boolean writeDefault)
throws net.openhft.chronicle.core.io.InvalidMarshallableException
net.openhft.chronicle.core.io.InvalidMarshallableExceptionpublic static void writeMarshallable(@NotNull
@NotNull Object marshallable,
@NotNull
@NotNull WireOut wire,
@NotNull
@NotNull Object previous,
boolean copy)
throws net.openhft.chronicle.core.io.InvalidMarshallableException
net.openhft.chronicle.core.io.InvalidMarshallableExceptionpublic static void writeKey(@NotNull
@NotNull Object marshallable,
net.openhft.chronicle.bytes.Bytes<?> bytes)
@NotNull public static <T extends Marshallable> T deepCopy(@NotNull T marshallable) throws net.openhft.chronicle.core.io.InvalidMarshallableException
net.openhft.chronicle.core.io.InvalidMarshallableException@NotNull public static <T> T copyTo(Object source, @NotNull T target) throws net.openhft.chronicle.core.io.InvalidMarshallableException
net.openhft.chronicle.core.io.InvalidMarshallableException@NotNull public static <T> T project(Class<T> tClass, Object source) throws net.openhft.chronicle.core.io.InvalidMarshallableException
net.openhft.chronicle.core.io.InvalidMarshallableException@NotNull public static @NotNull List<FieldInfo> fieldInfos(@NotNull @NotNull Class aClass)
@NotNull public static @NotNull Map<String,FieldInfo> fieldInfoMap(@NotNull @NotNull Class aClass)
public static boolean isEndOfFile(int num)
@Nullable
public static <T> T getField(@NotNull
@NotNull Object o,
String name,
Class<T> tClass)
throws NoSuchFieldException
NoSuchFieldExceptionpublic static long getLongField(@NotNull
@NotNull Object o,
String name)
throws NoSuchFieldException
NoSuchFieldExceptionpublic static void setField(@NotNull
@NotNull Object o,
String name,
Object value)
throws NoSuchFieldException
NoSuchFieldExceptionpublic static void setLongField(@NotNull
@NotNull Object o,
String name,
long value)
throws NoSuchFieldException
NoSuchFieldExceptionpublic static void reset(@NotNull
@NotNull Object o)
public static int removeMaskedTidFromHeader(int header)
@Nullable public static <E> E objectSequence(ValueIn in, @Nullable E using, @Nullable @Nullable Class clazz, SerializationStrategy<E> strategy)
@Nullable public static <E> E objectMap(ValueIn in, @Nullable E using, @Nullable @Nullable Class clazz, @NotNull @NotNull SerializationStrategy<E> strategy) throws net.openhft.chronicle.core.io.InvalidMarshallableException
net.openhft.chronicle.core.io.InvalidMarshallableException@NotNull public static <E> E objectDate(ValueIn in, @Nullable E using)
@Nullable public static <E> E object0(ValueIn in, @Nullable E using, @Nullable @Nullable Class clazz) throws net.openhft.chronicle.core.io.InvalidMarshallableException
net.openhft.chronicle.core.io.InvalidMarshallableExceptionpublic static <E> E object0(ValueIn in, @Nullable E using, @Nullable @Nullable Class clazz, boolean bestEffort) throws net.openhft.chronicle.core.io.InvalidMarshallableException
net.openhft.chronicle.core.io.InvalidMarshallableExceptionpublic static <E> E object1(ValueIn in, @Nullable E using, @Nullable @Nullable Class clazz, boolean bestEffort) throws net.openhft.chronicle.core.io.InvalidMarshallableException
net.openhft.chronicle.core.io.InvalidMarshallableExceptionpublic static boolean dtoInterface(Class clazz)
public static String typeNameFor(net.openhft.chronicle.core.pool.ClassLookup classLookup, @NotNull @NotNull Object value)
public static boolean isInternal(@NotNull
@NotNull Object value)
@NotNull public static @NotNull BinaryWire binaryWireForRead(net.openhft.chronicle.bytes.Bytes<?> in, long position, long length)
@NotNull public static @NotNull BinaryWire binaryWireForWrite(net.openhft.chronicle.bytes.Bytes<?> in, long position, long length)
Copyright © 2023. All rights reserved.