public interface WireIn extends WireCommon, MarshallableIn
| Modifier and Type | Interface and Description |
|---|---|
static class |
WireIn.HeaderType |
MARSHALLABLE_IN_INTERN_SIZE| Modifier and Type | Method and Description |
|---|---|
default @Nullable CharSequence |
asText()
Deprecated.
|
void |
clear()
Resets the state of the underlying
Bytes stored by the wire. |
void |
commentListener(Consumer<CharSequence> commentListener) |
void |
consumePadding() |
void |
copyTo(@NotNull WireOut wire) |
default void |
endEvent() |
@NotNull ValueIn |
getValueIn()
Obtain the value in for advanced use (typically after a call to readEvent above)
|
default boolean |
hasMetaDataPrefix() |
default boolean |
hasMore()
This consumes any padding before checking if readRemaining() > 0
|
default boolean |
hintReadInputOrder() |
default boolean |
isEmpty() |
default boolean |
isEndEvent() |
default boolean |
isNotEmptyAfterPadding()
This consumes any padding before checking if readRemaining() > 0
|
ObjectInput |
objectInput() |
default void |
rawReadData(@NotNull ReadMarshallable marshallable) |
@NotNull ValueIn |
read()
Read the field if present, or empty string if not present.
|
default @NotNull ValueIn |
read(String fieldName) |
@NotNull ValueIn |
read(@NotNull StringBuilder name)
Read the field if present, or empty string if not present.
|
@NotNull ValueIn |
read(@NotNull WireKey key)
Read the field if present which must match the WireKey.
|
default @NotNull WireIn |
readAlignTo(int alignment) |
default <K,V> @NotNull Map<K,V> |
readAllAsMap(Class<K> kClass,
@NotNull Class<V> vClass,
@NotNull Map<K,V> map) |
void |
readAndSetLength(long position) |
@NotNull WireIn |
readComment(@NotNull StringBuilder sb) |
default boolean |
readDataHeader()
Consume a header if one is available.
|
@NotNull WireIn.HeaderType |
readDataHeader(boolean includeMetaData) |
default boolean |
readDocument(long position,
@Nullable ReadMarshallable metaDataConsumer,
@Nullable ReadMarshallable dataConsumer) |
default boolean |
readDocument(@Nullable ReadMarshallable metaDataConsumer,
@Nullable ReadMarshallable dataConsumer) |
<K> K |
readEvent(Class<K> expectedClass)
Read a field which might be an object of any type.
|
default @NotNull ValueIn |
readEventName(@NotNull StringBuilder name)
Read a field, or string which is always written, even for formats which might drop the field
such as RAW.
|
long |
readEventNumber() |
void |
readFirstHeader() |
void |
readFirstHeader(long timeout,
TimeUnit timeUnit) |
@NotNull DocumentContext |
readingDocument()
equivalent to
readDocument(net.openhft.chronicle.wire.ReadMarshallable,
net.openhft.chronicle.wire.ReadMarshallable) but with out the use of a lambda expression |
DocumentContext |
readingDocument(long readLocation) |
String |
readingPeekYaml() |
void |
readMetaDataHeader() |
default void |
startEvent() |
bytes, bytesComment, classLookup, classLookup, headerNumber, headerNumber, isBinary, newBooleanReference, newIntArrayReference, newIntReference, newLongArrayReference, newLongReference, newTwoLongReference, notCompleteIsNotPresent, notCompleteIsNotPresent, parent, parent, pauser, pauser, reset, usePadding, usePadding, useSelfDescribingMessagemethodReader, methodReaderBuilder, readBytes, readBytes, readDocument, readMap, readText, readText@NotNull default <K,V> @NotNull Map<K,V> readAllAsMap(Class<K> kClass, @NotNull @NotNull Class<V> vClass, @NotNull @NotNull Map<K,V> map) throws net.openhft.chronicle.core.io.InvalidMarshallableException
net.openhft.chronicle.core.io.InvalidMarshallableExceptionvoid copyTo(@NotNull
@NotNull WireOut wire)
throws net.openhft.chronicle.core.io.InvalidMarshallableException
net.openhft.chronicle.core.io.InvalidMarshallableException@NotNull @NotNull ValueIn read()
@NotNull @NotNull ValueIn read(@NotNull @NotNull WireKey key)
long readEventNumber()
@NotNull default @NotNull ValueIn readEventName(@NotNull @NotNull StringBuilder name)
@NotNull @NotNull ValueIn read(@NotNull @NotNull StringBuilder name)
@Nullable <K> K readEvent(Class<K> expectedClass) throws net.openhft.chronicle.core.io.InvalidMarshallableException
Use getValueIn() to read the value for this event
expectedClass - to use as a hint, or Object.class if no hint available.net.openhft.chronicle.core.io.InvalidMarshallableException@NotNull @NotNull ValueIn getValueIn()
ObjectInput objectInput()
@NotNull @NotNull WireIn readComment(@NotNull @NotNull StringBuilder sb)
void clear()
WireCommonBytes stored by the wire.clear in interface WireCommondefault boolean hasMore()
NOTE: This method only works inside a document. Call it just before a document and it won't know not to read the read in case there is padding.
default boolean isNotEmptyAfterPadding()
NOTE: This method only works inside a document. Call it just before a document and it won't know not to read the read in case there is padding.
default boolean isEmpty()
@NotNull default @NotNull WireIn readAlignTo(int alignment)
default boolean readDocument(@Nullable
@Nullable ReadMarshallable metaDataConsumer,
@Nullable
@Nullable ReadMarshallable dataConsumer)
throws net.openhft.chronicle.core.io.InvalidMarshallableException
net.openhft.chronicle.core.io.InvalidMarshallableExceptiondefault boolean readDocument(long position,
@Nullable
@Nullable ReadMarshallable metaDataConsumer,
@Nullable
@Nullable ReadMarshallable dataConsumer)
throws net.openhft.chronicle.core.io.InvalidMarshallableException
net.openhft.chronicle.core.io.InvalidMarshallableExceptiondefault void rawReadData(@NotNull
@NotNull ReadMarshallable marshallable)
throws net.openhft.chronicle.core.io.InvalidMarshallableException
net.openhft.chronicle.core.io.InvalidMarshallableException@NotNull @NotNull DocumentContext readingDocument()
readDocument(net.openhft.chronicle.wire.ReadMarshallable,
net.openhft.chronicle.wire.ReadMarshallable) but with out the use of a lambda expressionreadingDocument in interface MarshallableInDocumentContext readingDocument(long readLocation)
void consumePadding()
void commentListener(Consumer<CharSequence> commentListener)
default boolean readDataHeader()
throws EOFException
EOFException - if the end of wire marker is reached.@NotNull @NotNull WireIn.HeaderType readDataHeader(boolean includeMetaData) throws EOFException
EOFExceptionvoid readAndSetLength(long position)
void readFirstHeader(long timeout,
TimeUnit timeUnit)
throws TimeoutException,
StreamCorruptedException
void readFirstHeader()
throws StreamCorruptedException
StreamCorruptedExceptionvoid readMetaDataHeader()
@Deprecated @Nullable default @Nullable CharSequence asText()
String readingPeekYaml()
default void startEvent()
default boolean isEndEvent()
default void endEvent()
default boolean hintReadInputOrder()
default boolean hasMetaDataPrefix()
Copyright © 2023. All rights reserved.