public class RawWire extends Object implements Wire, InternalWire
| 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() |
void |
clear() |
void |
copyTo(WireOut wire) |
ValueIn |
getValueIn()
Obtain the value in (for internal use)
|
ValueOut |
getValueOut()
Obtain the value out
|
boolean |
hasMore() |
boolean |
isReady() |
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) |
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() |
DocumentContext |
readingDocument(long readLocation) |
void |
setReady(boolean ready) |
String |
toString() |
ValueOut |
write()
Write an empty filed marker
|
ValueOut |
write(WireKey key)
Write a key for wires that support fields.
|
Wire |
writeComment(CharSequence s) |
ValueOut |
writeEventName(WireKey key)
Always write a key.
|
DocumentContext |
writingDocument(boolean metaData) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitrawReadData, readDocument, readDocumentwriteAlignTo, writeDocument, writeNotReadyDocumentpublic RawWire(net.openhft.chronicle.bytes.Bytes bytes)
public RawWire(net.openhft.chronicle.bytes.Bytes bytes,
boolean use8bit)
public DocumentContext writingDocument(boolean metaData)
writingDocument in interface WireOutpublic DocumentContext readingDocument()
readingDocument in interface WireInpublic DocumentContext readingDocument(long readLocation)
readingDocument in interface WireInpublic void setReady(boolean ready)
setReady in interface InternalWire@NotNull public ValueIn read()
WireIn@NotNull public ValueIn read(@NotNull WireKey key)
WireIn@NotNull public ValueIn readEventName(@NotNull StringBuilder name)
WireInreadEventName in interface WireIn@NotNull public ValueIn read(@NotNull StringBuilder name)
WireIn@NotNull public ValueIn getValueIn()
WireIngetValueIn in interface WireIn@NotNull public Wire readComment(@NotNull StringBuilder sb)
readComment in interface WireIn@NotNull public net.openhft.chronicle.bytes.Bytes bytes()
bytes in interface WireCommonpublic boolean hasMore()
@NotNull public WireIn readAlignTo(int alignment)
readAlignTo in interface WireIn@NotNull public ValueOut write()
WireOut@NotNull public ValueOut writeEventName(@NotNull WireKey key)
WireOutwriteEventName in interface WireOut@NotNull public ValueOut write(@NotNull WireKey key)
WireOut@NotNull public ValueOut getValueOut()
WireOutgetValueOut 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 WireCommonCopyright © 2016. All rights reserved.