public class RawWire extends AbstractWire implements Wire
WireIn.HeaderTypeMarshallableOut.PaddingASSERTIONS, bytes, parentMARSHALLABLE_IN_INTERN_SIZE| Constructor and Description |
|---|
RawWire(@NotNull net.openhft.chronicle.bytes.Bytes bytes) |
RawWire(@NotNull net.openhft.chronicle.bytes.Bytes bytes,
boolean use8bit) |
| 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) |
@NotNull net.openhft.chronicle.bytes.Bytes |
bytes()
Returns the underlying
Bytes stored by the wire. |
net.openhft.chronicle.core.pool.ClassLookup |
classLookup()
Returns the current
ClassLookup implementation being used for class lookup. |
void |
classLookup(net.openhft.chronicle.core.pool.ClassLookup classLookup)
Sets the
ClassLookup implementation to be used for class lookup. |
void |
clear()
Resets the state of the underlying
Bytes stored by the wire. |
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.BooleanValue |
newBooleanReference()
Creates and returns a new
BooleanValue. |
@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.bytes.ref.BinaryLongArrayReference |
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 |
readAlignTo(int alignment) |
@NotNull Wire |
readComment(@NotNull StringBuilder sb) |
<K> K |
readEvent(@NotNull Class<K> expectedClass)
Read a field which might be an object of any type.
|
@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.
|
@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 |
@NotNull DocumentContext |
readingDocument(long readLocation) |
@NotNull String |
readingPeekYaml() |
String |
toString() |
@NotNull ValueOut |
write()
Write an empty filed marker
|
@NotNull ValueOut |
write(@NotNull CharSequence name) |
@NotNull ValueOut |
write(@NotNull WireKey key)
Write a key for wires that support fields.
|
@NotNull Wire |
writeComment(CharSequence s) |
void |
writeEndEvent() |
@NotNull ValueOut |
writeEventName(@NotNull CharSequence name) |
@NotNull ValueOut |
writeEventName(@NotNull WireKey key)
Always write a key.
|
void |
writeStartEvent()
Start an event object, mostly for internal use.
|
@NotNull DocumentContext |
writingDocument(boolean metaData)
This will increment the headerNumber as appropriate if successful
|
bytesComment, 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, writeFirstHeaderclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfromFile, headerNumberasText, endEvent, hasMore, hintReadInputOrder, isEmpty, isEndEvent, isNotEmptyAfterPadding, objectInput, rawReadData, read, readAllAsMap, readAndSetLength, readDataHeader, readDataHeader, readDocument, readDocument, readEventNumber, readFirstHeader, readFirstHeader, readMetaDataHeader, startEventmethodReader, methodReaderBuilder, peekDocument, readBytes, readBytes, readDocument, readMap, readText, readTextdropDefault, enterHeader, objectOutput, padToCacheAlign, updateFirstHeader, updateHeader, writeAlignTo, writeAllAsMap, writeDocument, writeEndOfWire, writeEvent, writeEventId, writeEventId, writeFirstHeader, writeNotCompleteDocument, writingDocumentbytesComment, endUse, headerNumber, newTwoLongReference, notCompleteIsNotPresent, notCompleteIsNotPresent, parent, parent, pauser, pauser, startUse, usePadding, usePaddingmethodWriter, methodWriter, methodWriterBuilder, padToCacheAlignMode, recordHistory, writeBytes, writeDocument, writeDocument, writeMap, writeMessage, writeMessage, writeTextpublic RawWire(@NotNull
@NotNull net.openhft.chronicle.bytes.Bytes bytes)
public RawWire(@NotNull
@NotNull net.openhft.chronicle.bytes.Bytes bytes,
boolean use8bit)
public void classLookup(net.openhft.chronicle.core.pool.ClassLookup classLookup)
WireCommonClassLookup implementation to be used for class lookup.classLookup in interface WireCommonclassLookup in class AbstractWireclassLookup - implementation to be used for class lookup.public net.openhft.chronicle.core.pool.ClassLookup classLookup()
WireCommonClassLookup implementation being used for class lookup.classLookup in interface WireCommonclassLookup in class AbstractWireClassLookup implementation being used for class lookup@NotNull public @NotNull 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 WireOut@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 WireIn@NotNull public @NotNull DocumentContext readingDocument(long readLocation)
readingDocument in interface WireInpublic void consumePadding()
consumePadding in interface WireIn@NotNull public @NotNull String readingPeekYaml()
readingPeekYaml in interface WireIn@NotNull public @NotNull ValueIn read()
WireIn@NotNull public @NotNull ValueIn read(@NotNull @NotNull WireKey key)
WireIn@NotNull public @NotNull ValueIn readEventName(@NotNull @NotNull StringBuilder name)
WireInreadEventName in interface WireIn@Nullable
public <K> K readEvent(@NotNull
@NotNull Class<K> expectedClass)
WireIn@NotNull public @NotNull ValueIn read(@NotNull @NotNull StringBuilder name)
WireIn@NotNull public @NotNull ValueIn getValueIn()
WireIngetValueIn in interface WireIn@NotNull public @NotNull Wire readComment(@NotNull @NotNull StringBuilder sb)
readComment in interface WireInpublic void clear()
WireCommonBytes stored by the wire.clear in interface WireCommonclear in interface WireInclear in interface WireOutclear in class AbstractWire@NotNull public @NotNull net.openhft.chronicle.core.values.BooleanValue newBooleanReference()
WireCommonBooleanValue. The BooleanValue implementation that is
returned depends on the wire implementation.newBooleanReference in interface WireCommonBooleanValue.@NotNull public @NotNull net.openhft.chronicle.bytes.Bytes bytes()
WireCommonBytes stored by the wire.bytes in interface WireCommonbytes in class AbstractWireBytes stored by the wire@NotNull public @NotNull WireIn readAlignTo(int alignment)
readAlignTo in interface WireIn@NotNull public @NotNull ValueOut write()
WireOut@NotNull public @NotNull ValueOut writeEventName(@NotNull @NotNull WireKey key)
WireOutwriteEventName in interface WireOut@NotNull public @NotNull ValueOut writeEventName(@NotNull @NotNull CharSequence name)
writeEventName in interface WireOutpublic void writeStartEvent()
WireOutwriteStartEvent in interface WireOutpublic void writeEndEvent()
writeEndEvent in interface WireOut@NotNull public @NotNull ValueOut write(@NotNull @NotNull WireKey key)
WireOut@NotNull public @NotNull ValueOut write(@NotNull @NotNull CharSequence name)
@NotNull public @NotNull ValueOut getValueOut()
WireOutgetValueOut in interface WireOut@NotNull public @NotNull Wire writeComment(CharSequence s)
writeComment in interface WireOut@NotNull public @NotNull WireOut addPadding(int paddingToAdd)
addPadding in interface WireOut@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.IntValue newIntReference()
WireCommonIntValue. The IntValue implementation that is
returned depends on the wire implementation.newIntReference in interface WireCommonIntValue.@NotNull public @NotNull net.openhft.chronicle.bytes.ref.BinaryLongArrayReference 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 WireCommonIntArrayValuesCopyright © 2020. All rights reserved.