public class RawWire extends AbstractWire implements Wire
WireIn.HeaderType
MarshallableOut.Padding
ASSERTIONS, bytes, parent
DEFAULT_SAFE_LENGTH, TRY_WRITE_HEADER_FAILED
Constructor and Description |
---|
RawWire(net.openhft.chronicle.bytes.Bytes bytes) |
RawWire(net.openhft.chronicle.bytes.Bytes bytes,
boolean use8bit) |
Modifier and Type | Method and Description |
---|---|
WireOut |
addPadding(int paddingToAdd) |
net.openhft.chronicle.bytes.Bytes |
bytes() |
net.openhft.chronicle.core.pool.ClassLookup |
classLookup() |
void |
classLookup(net.openhft.chronicle.core.pool.ClassLookup classLookup)
Define how classes should be looked up.
|
void |
clear()
reset the state of the current wire for reuse.
|
void |
consumePadding() |
void |
copyTo(WireOut wire) |
void |
endEvent() |
ValueIn |
getValueIn()
Obtain the value in (for internal use)
|
ValueOut |
getValueOut()
Obtain the value out
|
net.openhft.chronicle.core.values.BooleanValue |
newBooleanReference() |
net.openhft.chronicle.core.values.IntValue |
newIntReference() |
net.openhft.chronicle.bytes.ref.BinaryLongArrayReference |
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 |
readAlignTo(int alignment) |
Wire |
readComment(StringBuilder sb) |
<K> K |
readEvent(Class<K> expectedClass)
Read a field which might be an object of any type.
|
ValueIn |
readEventName(StringBuilder name)
Read a field, or string which is always written, even for formats which might drop the field
such as RAW.
|
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.
|
String |
toString() |
ValueOut |
write()
Write an empty filed marker
|
ValueOut |
write(CharSequence name) |
ValueOut |
write(WireKey key)
Write a key for wires that support fields.
|
Wire |
writeComment(CharSequence s) |
ValueOut |
writeEventName(CharSequence name) |
ValueOut |
writeEventName(WireKey key)
Always write a key.
|
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, readMetaDataHeader, startUse, updateFirstHeader, updateHeader, writeEndOfWire, writeFirstHeader, writeHeaderOfUnknownLength
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
fromFile, headerNumber
asText, hasMore, isEmpty, isNotEmptyAfterPadding, objectInput, rawReadData, read, readAllAsMap, readAndSetLength, readDataHeader, readDataHeader, readDocument, readDocument, readEventNumber, readFirstHeader, readMetaDataHeader
methodReader, methodReaderBuilder, peekDocument, readBytes, readBytes, readDocument, readMap, readText, readText
dropDefault, enterHeader, objectOutput, padToCacheAlign, updateFirstHeader, updateHeader, updateHeader, writeAlignTo, writeAllAsMap, writeDocument, writeEndOfWire, writeEvent, writeEventId, writeFirstHeader, writeHeader, writeHeaderOfUnknownLength, writeHeaderOfUnknownLength, writeNotCompleteDocument, writingDocument
bytesComment, endUse, headerNumber, newTwoLongReference, notCompleteIsNotPresent, notCompleteIsNotPresent, parent, parent, pauser, pauser, startUse
methodWriter, methodWriter, methodWriterBuilder, padToCacheAlignMode, recordHistory, writeBytes, writeDocument, writeDocument, writeMap, writeMessage, writeText
public RawWire(@NotNull net.openhft.chronicle.bytes.Bytes bytes)
public RawWire(@NotNull net.openhft.chronicle.bytes.Bytes bytes, boolean use8bit)
public void classLookup(net.openhft.chronicle.core.pool.ClassLookup classLookup)
WireCommon
classLookup
in interface WireCommon
classLookup
in class AbstractWire
classLookup
- to usepublic net.openhft.chronicle.core.pool.ClassLookup classLookup()
classLookup
in interface WireCommon
classLookup
in class AbstractWire
@NotNull 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 data@NotNull public 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
@NotNull public DocumentContext readingDocument(long readLocation)
readingDocument
in interface WireIn
public void consumePadding()
consumePadding
in interface WireIn
@NotNull public String readingPeekYaml()
readingPeekYaml
in interface WireIn
@NotNull public ValueIn read()
WireIn
@NotNull public ValueIn read(@NotNull WireKey key)
WireIn
@NotNull public ValueIn readEventName(@NotNull StringBuilder name)
WireIn
readEventName
in interface WireIn
@Nullable public <K> K readEvent(@NotNull Class<K> expectedClass)
WireIn
@NotNull public ValueIn read(@NotNull StringBuilder name)
WireIn
@NotNull public ValueIn getValueIn()
WireIn
getValueIn
in interface WireIn
@NotNull public Wire readComment(@NotNull StringBuilder sb)
readComment
in interface WireIn
public void clear()
WireCommon
clear
in interface WireCommon
clear
in interface WireIn
clear
in interface WireOut
clear
in class AbstractWire
@NotNull public net.openhft.chronicle.core.values.BooleanValue newBooleanReference()
newBooleanReference
in interface WireCommon
@NotNull public net.openhft.chronicle.bytes.Bytes bytes()
bytes
in interface WireCommon
bytes
in class AbstractWire
@NotNull public WireIn readAlignTo(int alignment)
readAlignTo
in interface WireIn
@NotNull public ValueOut write()
WireOut
@NotNull public ValueOut writeEventName(@NotNull WireKey key)
WireOut
writeEventName
in interface WireOut
@NotNull public ValueOut writeEventName(@NotNull CharSequence name)
writeEventName
in interface WireOut
public void startEvent()
WireOut
startEvent
in interface WireOut
@NotNull public ValueOut write(@NotNull WireKey key)
WireOut
@NotNull public ValueOut write(@NotNull CharSequence name)
@NotNull public ValueOut getValueOut()
WireOut
getValueOut
in interface WireOut
@NotNull public Wire writeComment(CharSequence s)
writeComment
in interface WireOut
@NotNull public WireOut addPadding(int paddingToAdd)
addPadding
in interface WireOut
@NotNull public net.openhft.chronicle.core.values.LongValue newLongReference()
newLongReference
in interface WireCommon
@NotNull public net.openhft.chronicle.core.values.IntValue newIntReference()
newIntReference
in interface WireCommon
@NotNull public net.openhft.chronicle.bytes.ref.BinaryLongArrayReference newLongArrayReference()
newLongArrayReference
in interface WireCommon
Copyright © 2018. All rights reserved.