public abstract class AbstractAnyWire extends AbstractWire implements Wire
TextWire BinaryWire
WireIn.HeaderTypeMarshallableOut.Padding| Modifier and Type | Field and Description |
|---|---|
protected net.openhft.chronicle.wire.AbstractAnyWire.WireAcquisition |
wireAcquisition |
ASSERTIONS, bytes, classLookup, parent, use8bitMARSHALLABLE_IN_INTERN_SIZEDEFAULT_SAFE_LENGTH, TRY_WRITE_HEADER_FAILED| Constructor and Description |
|---|
AbstractAnyWire(net.openhft.chronicle.bytes.Bytes bytes,
net.openhft.chronicle.wire.AbstractAnyWire.WireAcquisition wa) |
| Modifier and Type | Method and Description |
|---|---|
WireOut |
addPadding(int paddingToAdd) |
void |
consumePadding() |
void |
copyTo(WireOut wire) |
void |
endEvent() |
ValueIn |
getValueIn()
Obtain the value in (for internal use)
|
ValueOut |
getValueOut()
Obtain the value out
|
boolean |
isTextWire() |
net.openhft.chronicle.core.values.IntValue |
newIntReference() |
net.openhft.chronicle.core.values.LongArrayValues |
newLongArrayReference() |
net.openhft.chronicle.core.values.LongValue |
newLongReference() |
ValueIn |
read()
Read the field if present, or empty string if not present.
|
ValueIn |
read(StringBuilder name)
Read the field if present, or empty string if not present.
|
ValueIn |
read(WireKey key)
Read the field if present which must match the WireKey.
|
WireIn |
readComment(StringBuilder sb) |
<K> K |
readEvent(Class<K> expectedClass)
Read a field which might be an object of any type.
|
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() |
void |
startEvent()
Start an event object, mostly for internal use.
|
Supplier<WireType> |
underlyingType() |
Wire |
underlyingWire() |
ValueOut |
write()
Write an empty filed marker
|
ValueOut |
write(CharSequence key) |
ValueOut |
write(WireKey key)
Write a key for wires that support fields.
|
WireOut |
writeComment(CharSequence s) |
ValueOut |
writeEvent(Class expectedType,
Object eventKey) |
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, writeEndOfWire, writeFirstHeader, writeHeaderOfUnknownLengthclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfromFile, headerNumberasText, clear, hasMore, isEmpty, isNotEmptyAfterPadding, objectInput, rawReadData, read, readAlignTo, readAllAsMap, readAndSetLength, readDataHeader, readDataHeader, readDocument, readDocument, readEventName, readEventNumber, readFirstHeader, readFirstHeader, readMetaDataHeadermethodReader, methodReaderBuilder, peekDocument, readBytes, readBytes, readDocument, readMap, readText, readTextclear, dropDefault, enterHeader, objectOutput, padToCacheAlign, updateFirstHeader, updateHeader, updateHeader, writeAlignTo, writeAllAsMap, writeDocument, writeEndOfWire, writeEventId, writeEventName, writeEventName, writeFirstHeader, writeHeader, writeHeaderOfUnknownLength, writeHeaderOfUnknownLength, writeNotCompleteDocument, writingDocumentbytes, bytesComment, classLookup, classLookup, endUse, headerNumber, newBooleanReference, newTwoLongReference, notCompleteIsNotPresent, notCompleteIsNotPresent, parent, parent, pauser, pauser, startUsemethodWriter, methodWriter, methodWriterBuilder, padToCacheAlignMode, recordHistory, writeBytes, writeDocument, writeDocument, writeMap, writeMessage, writeText@NotNull protected final net.openhft.chronicle.wire.AbstractAnyWire.WireAcquisition wireAcquisition
public AbstractAnyWire(@NotNull
net.openhft.chronicle.bytes.Bytes bytes,
@NotNull
net.openhft.chronicle.wire.AbstractAnyWire.WireAcquisition wa)
@Nullable public Wire underlyingWire()
@NotNull public ValueIn read()
WireIn@NotNull public ValueIn read(@NotNull WireKey key)
WireIn@NotNull public ValueIn read(@NotNull StringBuilder name)
WireIn@Nullable public <K> K readEvent(Class<K> expectedClass)
WireInpublic void startEvent()
WireOutstartEvent in interface WireOut@NotNull public ValueIn getValueIn()
WireIngetValueIn in interface WireIn@NotNull public WireIn readComment(@NotNull StringBuilder sb)
readComment in interface WireIn@NotNull public net.openhft.chronicle.core.values.IntValue newIntReference()
newIntReference in interface WireCommon@NotNull public net.openhft.chronicle.core.values.LongValue newLongReference()
newLongReference in interface WireCommon@NotNull public net.openhft.chronicle.core.values.LongArrayValues newLongArrayReference()
newLongArrayReference in interface WireCommon@NotNull public 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 ValueOut write()
WireOut@NotNull public ValueOut write(WireKey key)
WireOutpublic ValueOut write(CharSequence key)
public ValueOut writeEvent(Class expectedType, Object eventKey)
writeEvent in interface WireOut@NotNull public ValueOut getValueOut()
WireOutgetValueOut in interface WireOut@NotNull public WireOut writeComment(CharSequence s)
writeComment in interface WireOut@NotNull public WireOut addPadding(int paddingToAdd)
addPadding in interface WireOutpublic DocumentContext writingDocument(boolean metaData)
WireOutwritingDocument in interface MarshallableOutwritingDocument in interface WireOutmetaData - if true the document context will be used for writing meta data,
otherwise datapublic String readingPeekYaml()
readingPeekYaml in interface WireInpublic boolean isTextWire()
isTextWire in interface WireCommonCopyright © 2019. All rights reserved.