public abstract class AbstractAnyWire extends AbstractWire implements Wire
TextWire BinaryWire
WireIn.HeaderTypeWireOut.EndOfWire| Modifier and Type | Field and Description |
|---|---|
protected @NotNull net.openhft.chronicle.wire.AbstractAnyWire.WireAcquisition |
wireAcquisition |
bytes, classLookup, commentListener, DEFAULT_USE_PADDING, parent, use8bitMARSHALLABLE_IN_INTERN_SIZE| Modifier | Constructor and Description |
|---|---|
protected |
AbstractAnyWire(@NotNull net.openhft.chronicle.bytes.Bytes<?> bytes,
@NotNull net.openhft.chronicle.wire.AbstractAnyWire.WireAcquisition wa) |
| Modifier and Type | Method and Description |
|---|---|
DocumentContext |
acquireWritingDocument(boolean metaData)
Start or reuse an existing a DocumentContext, optionally call close() when done.
|
@NotNull WireOut |
addPadding(int paddingToAdd) |
void |
consumePadding() |
void |
copyTo(@NotNull WireOut wire) |
@NotNull ValueIn |
getValueIn()
Obtain the value in for advanced use (typically after a call to readEvent above)
|
@NotNull ValueOut |
getValueOut()
Obtain the value out
|
@NotNull net.openhft.chronicle.core.values.IntArrayValues |
newIntArrayReference()
Creates and returns a new
IntArrayValues. |
@NotNull net.openhft.chronicle.core.values.IntValue |
newIntReference()
Creates and returns a new
IntValue. |
@NotNull net.openhft.chronicle.core.values.LongArrayValues |
newLongArrayReference()
Creates and returns a new
LongArrayValues. |
@NotNull net.openhft.chronicle.core.values.LongValue |
newLongReference()
Creates and returns a new
LongValue. |
@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, commentListener, endOfWire, enterHeader, forceNotInsideHeader, headerNumber, headerNumber, headNumberCheck, isInsideHeader, notCompleteIsNotPresent, notCompleteIsNotPresent, objectInput, objectOutput, parent, parent, pauser, pauser, readAndSetLength, readDataHeader, readEventNumber, readFirstHeader, readFirstHeader, readMetaDataHeader, updateFirstHeader, updateFirstHeader, updateHeader, usePadding, usePadding, writeEndOfWire, writeFirstHeaderclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfromFile, headerNumber, newYamlWireOnHeapasText, clear, commentListener, endEvent, hasMetaDataPrefix, hasMore, hintReadInputOrder, isEmpty, isEndEvent, isNotEmptyAfterPadding, objectInput, rawReadData, read, readAlignTo, readAllAsMap, readAndSetLength, readDataHeader, readDataHeader, readDocument, readDocument, readEventName, readEventNumber, readFirstHeader, readFirstHeader, readMetaDataHeader, startEventmethodReader, methodReaderBuilder, readBytes, readBytes, readDocument, readMap, readText, readTextclear, dropDefault, endOfWire, enterHeader, objectOutput, padToCacheAlign, updateFirstHeader, updateFirstHeader, updateHeader, writeAlignTo, writeAllAsMap, writeDocument, writeEndOfWire, writeEventId, writeEventId, writeEventName, writeEventName, writeFirstHeader, writeNotCompleteDocument, writingDocument, writingIsCompletebytes, bytesComment, classLookup, classLookup, headerNumber, isBinary, newBooleanReference, newTwoLongReference, notCompleteIsNotPresent, notCompleteIsNotPresent, parent, parent, pauser, pauser, reset, usePadding, usePadding, useSelfDescribingMessagebuilder, methodWriter, methodWriter, methodWriterBuilder, methodWriterBuilder, recordHistory, writeBytes, writeDocument, writeDocument, writeMap, writeMessage, writeMessage, writeText@NotNull protected final @NotNull net.openhft.chronicle.wire.AbstractAnyWire.WireAcquisition wireAcquisition
protected AbstractAnyWire(@NotNull
@NotNull net.openhft.chronicle.bytes.Bytes<?> bytes,
@NotNull
@NotNull net.openhft.chronicle.wire.AbstractAnyWire.WireAcquisition wa)
@Nullable public @Nullable Wire underlyingWire()
public void copyTo(@NotNull
@NotNull WireOut wire)
throws net.openhft.chronicle.core.io.InvalidMarshallableException
@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) throws net.openhft.chronicle.core.io.InvalidMarshallableException
WireInUse getValueIn() to read the value for this event
public void writeStartEvent()
WireOutwriteStartEvent in interface WireOutpublic void writeEndEvent()
writeEndEvent in interface WireOut@NotNull public @NotNull ValueIn getValueIn()
WireIngetValueIn 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()
WireCommonIntValue. The IntValue implementation that is
returned depends on the wire implementation.newIntReference in interface WireCommonIntValue.@NotNull public @NotNull net.openhft.chronicle.core.values.LongValue newLongReference()
WireCommonLongValue. The LongValue implementation that is
returned depends on the wire implementation.newLongReference in interface WireCommonLongValue@NotNull public @NotNull net.openhft.chronicle.core.values.LongArrayValues newLongArrayReference()
WireCommonLongArrayValues. The LongArrayValues implementation that
is returned depends on the wire implementation.newLongArrayReference in interface WireCommonLongArrayValues@NotNull public @NotNull net.openhft.chronicle.core.values.IntArrayValues newIntArrayReference()
WireCommonIntArrayValues. The IntArrayValues implementation that
is returned depends on the wire implementation.newIntArrayReference in interface WireCommonIntArrayValues@NotNull public @NotNull DocumentContext readingDocument()
WireInWireIn.readDocument(net.openhft.chronicle.wire.ReadMarshallable,
net.openhft.chronicle.wire.ReadMarshallable) but with out the use of a lambda expressionreadingDocument in interface MarshallableInreadingDocument in interface WireInpublic DocumentContext readingDocument(long readLocation)
readingDocument in interface WireInpublic void consumePadding()
consumePadding in interface WireIn@NotNull public @NotNull ValueOut write()
WireOut@NotNull public @NotNull ValueOut write(WireKey key)
WireOutpublic ValueOut write(CharSequence key)
public ValueOut writeEvent(Class expectedType, Object eventKey) throws net.openhft.chronicle.core.io.InvalidMarshallableException
writeEvent in interface WireOutnet.openhft.chronicle.core.io.InvalidMarshallableException@NotNull public @NotNull ValueOut getValueOut()
WireOutgetValueOut in interface WireOut@NotNull public @NotNull WireOut writeComment(CharSequence s)
writeComment in interface WireOut@NotNull public @NotNull WireOut addPadding(int paddingToAdd)
addPadding in interface WireOutpublic DocumentContext writingDocument(boolean metaData)
WireOutwritingDocument in interface DocumentWrittenwritingDocument in interface MarshallableOutwritingDocument in interface WireOutmetaData - if true the document context will be used for writing meta data,
otherwise datapublic DocumentContext acquireWritingDocument(boolean metaData)
MarshallableOutacquireWritingDocument in interface DocumentWrittenacquireWritingDocument in interface MarshallableOutacquireWritingDocument in interface WireOutpublic String readingPeekYaml()
readingPeekYaml in interface WireInCopyright © 2023. All rights reserved.