public enum Wires extends Enum<Wires>
| Modifier and Type | Field and Description |
|---|---|
static net.openhft.chronicle.core.ClassLocal<SerializationStrategy> |
CLASS_STRATEGY |
static List<Function<Class,SerializationStrategy>> |
CLASS_STRATEGY_FUNCTIONS |
static WireIn |
EMPTY |
static int |
END_OF_DATA |
static int |
LENGTH_MASK |
static int |
MAX_LENGTH |
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 |
NOT_READY
Deprecated.
|
static int |
SPB_HEADER_SIZE |
static int |
UNKNOWN_LENGTH |
| Modifier and Type | Method and Description |
|---|---|
static net.openhft.chronicle.bytes.Bytes |
acquireAnotherBytes() |
static Wire |
acquireBinaryWire() |
static net.openhft.chronicle.bytes.Bytes<?> |
acquireBytes() |
static boolean |
acquireLock(net.openhft.chronicle.bytes.BytesStore store,
long position) |
static StringBuilder |
acquireStringBuilder() |
static int |
addMaskedTidToHeader(int header) |
static CharSequence |
asText(WireIn wireIn) |
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 int |
extractTidFromHeader(int header) |
static FieldInfo |
fieldInfo(Class aClass,
String name) |
static List<FieldInfo> |
fieldInfos(Class aClass) |
static String |
fromSizePrefixedBlobs(net.openhft.chronicle.bytes.Bytes bytes)
This decodes some Bytes where the first 4-bytes is the length.
|
static String |
fromSizePrefixedBlobs(net.openhft.chronicle.bytes.Bytes<?> bytes,
long position,
long length) |
static String |
fromSizePrefixedBlobs(net.openhft.chronicle.bytes.Bytes bytes,
long position) |
static String |
fromSizePrefixedBlobs(DocumentContext dc) |
static String |
fromSizePrefixedBlobs(WireIn wireIn) |
static <T> T |
getField(Object o,
String name,
Class<T> tClass) |
static boolean |
isData(int len) |
static boolean |
isData(long len)
Deprecated.
|
static boolean |
isEndOfFile(int num) |
static boolean |
isEquals(Object o1,
Object o2) |
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,
Class clazz) |
static <E> E |
objectDate(ValueIn in,
E using) |
static <E> E |
objectMap(ValueIn in,
E using,
Class clazz,
SerializationStrategy<E> strategy) |
static <E> E |
objectSequence(ValueIn in,
E using,
Class clazz,
SerializationStrategy<E> strategy) |
static <T> T |
project(Class<T> tClass,
Object source) |
static <T> T |
read(Class<T> tClass,
ValueIn in) |
static void |
readMarshallable(Object marshallable,
WireIn wire,
boolean overwrite) |
static long |
readWire(WireIn wireIn,
long size,
ReadMarshallable readMarshallable) |
static int |
removeMaskedTidFromHeader(int header) |
static void |
reset(Object o) |
static void |
setField(Object o,
String name,
Object value) |
static int |
toIntU30(long l,
String error) |
static <T> T |
tupleFor(Class<T> tClass,
String typeName) |
static String |
typeNameFor(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(WireOut wireOut,
T writer) |
static void |
writeKey(Object marshallable,
net.openhft.chronicle.bytes.Bytes bytes) |
static void |
writeMarshallable(Object marshallable,
WireOut wire) |
static void |
writeMarshallable(Object marshallable,
WireOut wire,
boolean writeDefault) |
static void |
writeMarshallable(Object marshallable,
WireOut wire,
Object previous,
boolean copy) |
public static final int LENGTH_MASK
public static final int NOT_COMPLETE
@Deprecated public static final int NOT_READY
public static final int META_DATA
public static final int UNKNOWN_LENGTH
public static final int MAX_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 WireIn EMPTY
public static final int SPB_HEADER_SIZE
public static final List<Function<Class,SerializationStrategy>> CLASS_STRATEGY_FUNCTIONS
public static final net.openhft.chronicle.core.ClassLocal<SerializationStrategy> CLASS_STRATEGY
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 String fromSizePrefixedBlobs(@NotNull net.openhft.chronicle.bytes.Bytes bytes)
bytes - to decodepublic static String fromSizePrefixedBlobs(@NotNull net.openhft.chronicle.bytes.Bytes bytes, long position)
public static String fromSizePrefixedBlobs(@NotNull DocumentContext dc)
@Nullable public static CharSequence asText(@NotNull WireIn wireIn)
public static StringBuilder acquireStringBuilder()
public static int lengthOf(int len)
public static boolean isReady(int header)
public static boolean isNotComplete(int header)
public static boolean isReadyData(int header)
@Deprecated public static boolean isData(long len)
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
String error)
public static boolean acquireLock(@NotNull
net.openhft.chronicle.bytes.BytesStore store,
long position)
public static boolean exceedsMaxLength(long length)
public static <T extends WriteMarshallable> long writeData(@NotNull WireOut wireOut, @NotNull T writer)
public static long readWire(@NotNull
WireIn wireIn,
long size,
@NotNull
ReadMarshallable readMarshallable)
@Nullable public static net.openhft.chronicle.bytes.Bytes<?> acquireBytes()
@Nullable public static Wire acquireBinaryWire()
@Nullable public static net.openhft.chronicle.bytes.Bytes acquireAnotherBytes()
public static String fromSizePrefixedBlobs(@NotNull net.openhft.chronicle.bytes.Bytes<?> bytes, long position, long length)
public static void readMarshallable(@NotNull
Object marshallable,
@NotNull
WireIn wire,
boolean overwrite)
public static void writeMarshallable(@NotNull
Object marshallable,
@NotNull
WireOut wire)
public static void writeMarshallable(@NotNull
Object marshallable,
@NotNull
WireOut wire,
boolean writeDefault)
public static void writeMarshallable(@NotNull
Object marshallable,
@NotNull
WireOut wire,
@NotNull
Object previous,
boolean copy)
public static void writeKey(@NotNull
Object marshallable,
net.openhft.chronicle.bytes.Bytes bytes)
@NotNull public static <T extends Marshallable> T deepCopy(@NotNull T marshallable)
@NotNull public static <T> T copyTo(Object source, @NotNull T target)
public static boolean isEndOfFile(int num)
@Nullable
public static <T> T getField(@NotNull
Object o,
String name,
Class<T> tClass)
throws NoSuchFieldException
NoSuchFieldExceptionpublic static void setField(@NotNull
Object o,
String name,
Object value)
throws NoSuchFieldException
NoSuchFieldExceptionpublic static void reset(@NotNull
Object o)
public static int addMaskedTidToHeader(int header)
public static int removeMaskedTidFromHeader(int header)
public static int extractTidFromHeader(int header)
@Nullable public static <E> E objectSequence(ValueIn in, @Nullable E using, @Nullable Class clazz, SerializationStrategy<E> strategy)
@Nullable public static <E> E objectMap(ValueIn in, @Nullable E using, @Nullable Class clazz, SerializationStrategy<E> strategy)
@NotNull public static <E> E objectDate(ValueIn in, @Nullable E using)
public static boolean dtoInterface(Class clazz)
Copyright © 2018. All rights reserved.