public interface Marshallable extends WriteMarshallable, ReadMarshallable, net.openhft.chronicle.core.io.Resettable
EMPTYDISCARD| Modifier and Type | Method and Description |
|---|---|
static boolean |
$equals(@NotNull WriteMarshallable $this,
Object o) |
default @NotNull Map<String,FieldInfo> |
$fieldInfoMap() |
default @NotNull List<FieldInfo> |
$fieldInfos() |
static int |
$hashCode(WriteMarshallable $this) |
static String |
$toString(WriteMarshallable $this) |
default String |
className() |
default <T extends Marshallable> |
copyTo(T t) |
default <T> T |
deepCopy() |
static <T> T |
fromFile(@NotNull Class<T> expectedType,
String filename)
Reads the file from the current working directory, or the class path.
|
static <T> T |
fromFile(String filename)
Reads the file from the current working directory, or the class path.
|
static <T> T |
fromString(@NotNull CharSequence cs) |
static <T> T |
fromString(@NotNull Class<T> tClass,
@NotNull CharSequence cs) |
static <T> T |
fromString(@NotNull InputStream is) |
default <T> T |
getField(String name,
Class<T> tClass) |
default long |
getLongField(String name) |
default <K,T extends Marshallable> |
mergeToMap(@NotNull Map<K,T> map,
@NotNull Function<T,K> getKey) |
default void |
readMarshallable(@NotNull WireIn wire)
Straight line ordered decoding.
|
default void |
reset() |
default void |
setField(String name,
Object value) |
default void |
setLongField(String name,
long value) |
static <T> @Nullable Stream<T> |
streamFromFile(@NotNull Class<T> expectedType,
String filename) |
static <T> @NotNull Stream<T> |
streamFromFile(String filename) |
default void |
writeMarshallable(@NotNull WireOut wire)
Write data to the wire
|
binaryLengthLength, writeValueunexpectedFieldstatic boolean $equals(@NotNull
@NotNull WriteMarshallable $this,
Object o)
static int $hashCode(WriteMarshallable $this)
static String $toString(WriteMarshallable $this)
@Nullable
static <T> T fromString(@NotNull
@NotNull CharSequence cs)
@Nullable
static <T> T fromString(@NotNull
@NotNull Class<T> tClass,
@NotNull
@NotNull CharSequence cs)
@NotNull static <T> T fromFile(String filename) throws IOException
filename - or path to readIOExceptionstatic <T> T fromString(@NotNull
@NotNull InputStream is)
@Nullable
static <T> T fromFile(@NotNull
@NotNull Class<T> expectedType,
String filename)
throws IOException
filename - or path to readexpectedType - to deserialize asIOException@NotNull static <T> @NotNull Stream<T> streamFromFile(String filename) throws IOException
IOException@Nullable static <T> @Nullable Stream<T> streamFromFile(@NotNull @NotNull Class<T> expectedType, String filename) throws IOException
IOException@Nullable default <T> T getField(String name, Class<T> tClass) throws NoSuchFieldException
NoSuchFieldExceptiondefault void setField(String name, Object value) throws NoSuchFieldException
NoSuchFieldExceptiondefault long getLongField(String name) throws NoSuchFieldException
NoSuchFieldExceptiondefault void setLongField(String name, long value) throws NoSuchFieldException
NoSuchFieldExceptiondefault void readMarshallable(@NotNull
@NotNull WireIn wire)
throws net.openhft.chronicle.core.io.IORuntimeException
ReadMarshallablereadMarshallable in interface ReadMarshallablewire - to read from in an ordered manner.net.openhft.chronicle.core.io.IORuntimeException - the stream wasn't ordered or formatted as expected.default void writeMarshallable(@NotNull
@NotNull WireOut wire)
WriteMarshallablewriteMarshallable in interface WriteMarshallablewire - to write to.@NotNull default <T> T deepCopy()
default <T extends Marshallable> T copyTo(@NotNull T t)
default <K,T extends Marshallable> T mergeToMap(@NotNull @NotNull Map<K,T> map, @NotNull @NotNull Function<T,K> getKey)
default String className()
default void reset()
reset in interface net.openhft.chronicle.core.io.ResettableCopyright © 2022. All rights reserved.