public abstract class AbstractAnyWire extends AbstractWire implements Wire
TextWire BinaryWire
WireIn.HeaderType
MarshallableOut.Padding
Modifier and Type | Field and Description |
---|---|
protected @NotNull net.openhft.chronicle.wire.AbstractAnyWire.WireAcquisition |
wireAcquisition |
ASSERTIONS, bytes, classLookup, parent, use8bit
MARSHALLABLE_IN_INTERN_SIZE
Constructor and Description |
---|
AbstractAnyWire(@NotNull net.openhft.chronicle.bytes.Bytes bytes,
@NotNull net.openhft.chronicle.wire.AbstractAnyWire.WireAcquisition wa) |
Modifier and Type | Method and Description |
---|---|
@NotNull WireOut |
addPadding(int paddingToAdd) |
void |
consumePadding() |
void |
copyTo(@NotNull WireOut wire) |
@NotNull ValueIn |
getValueIn()
Obtain the value in (for internal use)
|
@NotNull ValueOut |
getValueOut()
Obtain the value out
|
@NotNull net.openhft.chronicle.core.values.IntValue |
newIntReference() |
@NotNull net.openhft.chronicle.core.values.LongArrayValues |
newLongArrayReference() |
@NotNull net.openhft.chronicle.core.values.LongValue |
newLongReference() |
@NotNull ValueIn |
read()
Read the field if present, or empty string if not present.
|
@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.
|
@NotNull WireIn |
readComment(@NotNull StringBuilder sb) |
<K> K |
readEvent(Class<K> expectedClass)
Read a field which might be an object of any type.
|
@NotNull DocumentContext |
readingDocument()
equivalent to
WireIn.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() |
@NotNull Supplier<WireType> |
underlyingType() |
@Nullable Wire |
underlyingWire() |
@NotNull ValueOut |
write()
Write an empty filed marker
|
ValueOut |
write(CharSequence key) |
@NotNull ValueOut |
write(WireKey key)
Write a key for wires that support fields.
|
@NotNull WireOut |
writeComment(CharSequence s) |
void |
writeEndEvent() |
ValueOut |
writeEvent(Class expectedType,
Object eventKey) |
void |
writeStartEvent()
Start an event object, mostly for internal use.
|
DocumentContext |
writingDocument(boolean metaData)
This will increment the headerNumber as appropriate if successful
|
bytes, bytesComment, classLookup, classLookup, clear, endUse, enterHeader, forceNotInsideHeader, headerNumber, headerNumber, headNumberCheck, isInsideHeader, notCompleteIsNotPresent, notCompleteIsNotPresent, objectInput, objectOutput, parent, parent, pauser, pauser, readAndSetLength, readDataHeader, readEventNumber, readFirstHeader, readFirstHeader, readMetaDataHeader, startUse, updateFirstHeader, updateHeader, usePadding, usePadding, writeEndOfWire, writeFirstHeader
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
fromFile, headerNumber
asText, clear, endEvent, hasMore, hintReadInputOrder, isEmpty, isEndEvent, isNotEmptyAfterPadding, objectInput, rawReadData, read, readAlignTo, readAllAsMap, readAndSetLength, readDataHeader, readDataHeader, readDocument, readDocument, readEventName, readEventNumber, readFirstHeader, readFirstHeader, readMetaDataHeader, startEvent
methodReader, methodReaderBuilder, peekDocument, readBytes, readBytes, readDocument, readMap, readText, readText
clear, dropDefault, enterHeader, objectOutput, padToCacheAlign, updateFirstHeader, updateHeader, writeAlignTo, writeAllAsMap, writeDocument, writeEndOfWire, writeEventId, writeEventName, writeEventName, writeFirstHeader, writeNotCompleteDocument, writingDocument
bytes, bytesComment, classLookup, classLookup, endUse, headerNumber, newBooleanReference, newTwoLongReference, notCompleteIsNotPresent, notCompleteIsNotPresent, parent, parent, pauser, pauser, startUse, usePadding, usePadding
methodWriter, methodWriter, methodWriterBuilder, padToCacheAlignMode, recordHistory, writeBytes, writeDocument, writeDocument, writeMap, writeMessage, writeText
@NotNull protected final @NotNull net.openhft.chronicle.wire.AbstractAnyWire.WireAcquisition wireAcquisition
public AbstractAnyWire(@NotNull @NotNull net.openhft.chronicle.bytes.Bytes bytes, @NotNull @NotNull net.openhft.chronicle.wire.AbstractAnyWire.WireAcquisition wa)
@Nullable public @Nullable Wire underlyingWire()
@NotNull public @NotNull ValueIn read()
WireIn
@NotNull public @NotNull ValueIn read(@NotNull @NotNull WireKey key)
WireIn
@NotNull public @NotNull ValueIn read(@NotNull @NotNull StringBuilder name)
WireIn
@Nullable public <K> K readEvent(Class<K> expectedClass)
WireIn
public void writeStartEvent()
WireOut
writeStartEvent
in interface WireOut
public void writeEndEvent()
writeEndEvent
in interface WireOut
@NotNull public @NotNull ValueIn getValueIn()
WireIn
getValueIn
in interface WireIn
@NotNull public @NotNull WireIn readComment(@NotNull @NotNull StringBuilder sb)
readComment
in interface WireIn
@NotNull public @NotNull net.openhft.chronicle.core.values.IntValue newIntReference()
newIntReference
in interface WireCommon
@NotNull public @NotNull net.openhft.chronicle.core.values.LongValue newLongReference()
newLongReference
in interface WireCommon
@NotNull public @NotNull net.openhft.chronicle.core.values.LongArrayValues newLongArrayReference()
newLongArrayReference
in interface WireCommon
@NotNull public @NotNull DocumentContext readingDocument()
WireIn
WireIn.readDocument(net.openhft.chronicle.wire.ReadMarshallable,
net.openhft.chronicle.wire.ReadMarshallable)
but with out the use of a lambda expressionreadingDocument
in interface MarshallableIn
readingDocument
in interface WireIn
public DocumentContext readingDocument(long readLocation)
readingDocument
in interface WireIn
public void consumePadding()
consumePadding
in interface WireIn
@NotNull public @NotNull ValueOut write()
WireOut
@NotNull public @NotNull ValueOut write(WireKey key)
WireOut
public ValueOut write(CharSequence key)
public ValueOut writeEvent(Class expectedType, Object eventKey)
writeEvent
in interface WireOut
@NotNull public @NotNull ValueOut getValueOut()
WireOut
getValueOut
in interface WireOut
@NotNull public @NotNull WireOut writeComment(CharSequence s)
writeComment
in interface WireOut
@NotNull public @NotNull WireOut addPadding(int paddingToAdd)
addPadding
in interface WireOut
public DocumentContext writingDocument(boolean metaData)
WireOut
writingDocument
in interface MarshallableOut
writingDocument
in interface WireOut
metaData
- if true
the document context will be used for writing meta data,
otherwise datapublic String readingPeekYaml()
readingPeekYaml
in interface WireIn
Copyright © 2020. All rights reserved.