public interface Marshallable extends WriteMarshallable, ReadMarshallable, net.openhft.chronicle.core.io.Resettable
EMPTYDISCARD| Modifier and Type | Method and Description |
|---|---|
static boolean |
$equals(WriteMarshallable $this,
Object o) |
default List<FieldInfo> |
$fieldInfos() |
static int |
$hashCode(WriteMarshallable $this) |
static String |
$toString(WriteMarshallable $this) |
default <T extends Marshallable> |
copyFrom(T t)
Deprecated.
|
default <T extends Marshallable> |
copyTo(T t) |
default <T> T |
deepCopy() |
static <T> T |
fromFile(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 Map<String,Object> |
fromFileAsMap(String filename)
Deprecated.
|
static <V> Map<String,V> |
fromFileAsMap(String filename,
Class<V> valueClass)
Deprecated.
|
static Map<String,Object> |
fromHexString(CharSequence cs)
Deprecated.
|
static <T> T |
fromString(CharSequence cs) |
static <T> T |
fromString(Class<T> tClass,
CharSequence cs) |
static <T> T |
fromString(InputStream is) |
default String |
getClassName() |
default <T> T |
getField(String name,
Class<T> tClass) |
default <K,T extends Marshallable> |
mergeToMap(Map<K,T> map,
Function<T,K> getKey) |
default void |
readMarshallable(WireIn wire)
Straight line ordered decoding.
|
default void |
reset() |
default void |
setField(String name,
Object value) |
static <T> Stream<T> |
streamFromFile(Class<T> expectedType,
String filename) |
static <T> Stream<T> |
streamFromFile(String filename) |
default void |
writeMarshallable(WireOut wire)
Write data to the wire
|
writeValueunexpectedFieldstatic boolean $equals(@NotNull
WriteMarshallable $this,
Object o)
static int $hashCode(WriteMarshallable $this)
static String $toString(WriteMarshallable $this)
@Nullable
static <T> T fromString(@NotNull
CharSequence cs)
@Nullable
static <T> T fromString(@NotNull
Class<T> tClass,
@NotNull
CharSequence cs)
@NotNull static <T> T fromFile(String filename) throws IOException
filename - or path to readIOExceptionstatic <T> T fromString(@NotNull
InputStream is)
@Nullable
static <T> T fromFile(@NotNull
Class<T> expectedType,
String filename)
throws IOException
filename - or path to readexpectedType - to deserialize asIOException@NotNull static <T> Stream<T> streamFromFile(String filename) throws IOException
IOException@Nullable static <T> Stream<T> streamFromFile(@NotNull Class<T> expectedType, String filename) throws IOException
IOException@Deprecated @NotNull static Map<String,Object> fromFileAsMap(String filename) throws IOException
IOException@Deprecated @NotNull static <V> Map<String,V> fromFileAsMap(String filename, @NotNull Class<V> valueClass) throws IOException
IOException@Deprecated @Nullable static Map<String,Object> fromHexString(@NotNull CharSequence cs)
@Nullable default <T> T getField(String name, Class<T> tClass) throws NoSuchFieldException
NoSuchFieldExceptiondefault void setField(String name, Object value) throws NoSuchFieldException
NoSuchFieldExceptiondefault void readMarshallable(@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
WireOut wire)
WriteMarshallablewriteMarshallable in interface WriteMarshallablewire - to write to.@NotNull default <T> T deepCopy()
@Deprecated @NotNull default <T extends Marshallable> T copyFrom(@NotNull T t)
default <T extends Marshallable> T copyTo(@NotNull T t)
default <K,T extends Marshallable> T mergeToMap(@NotNull Map<K,T> map, @NotNull Function<T,K> getKey)
default String getClassName()
default void reset()
reset in interface net.openhft.chronicle.core.io.ResettableCopyright © 2019. All rights reserved.