public class TextWire extends Object implements Wire, InternalWireIn
| Modifier and Type | Field and Description |
|---|---|
static String |
FIELD_SEP |
static String |
NULL |
static String |
SEQ_MAP |
| Constructor and Description |
|---|
TextWire(net.openhft.chronicle.bytes.Bytes bytes) |
| Modifier and Type | Method and Description |
|---|---|
WireOut |
addPadding(int paddingToAdd) |
static String |
asText(Wire wire) |
net.openhft.chronicle.bytes.Bytes<?> |
bytes() |
void |
clear() |
void |
copyTo(WireOut wire) |
void |
flip() |
ValueIn |
getValueIn()
Obtain the value in (for internal use)
|
ValueOut |
getValueOut()
Obtain the value out (for internal use)
|
boolean |
isReady() |
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.
|
Wire |
readComment(StringBuilder s) |
void |
setReady(boolean ready) |
String |
toString() |
static <ACS extends Appendable & CharSequence> |
unescape(ACS sb) |
ValueOut |
write()
Write an empty filed marker
|
ValueOut |
write(WireKey key)
Write a key for wires that support fields.
|
Wire |
writeComment(CharSequence s) |
ValueOut |
writeValue()
write a field less value.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitwriteDocument, writeEventNamereadDocument, readDocument, readEventNamepublic static final String FIELD_SEP
public static final String SEQ_MAP
public static final String NULL
public void setReady(boolean ready)
setReady in interface InternalWireInpublic ValueIn read()
WireInpublic static <ACS extends Appendable & CharSequence> void unescape(ACS sb)
public ValueIn read(@NotNull WireKey key)
WireInpublic ValueIn read(@NotNull StringBuilder name)
WireInpublic ValueIn getValueIn()
WireIngetValueIn in interface WireInpublic Wire readComment(@NotNull StringBuilder s)
readComment in interface WireInpublic net.openhft.chronicle.bytes.Bytes<?> bytes()
public ValueOut write()
WireOutpublic ValueOut write(WireKey key)
WireOutpublic ValueOut writeValue()
WireOutwriteValue in interface WireOutpublic ValueOut getValueOut()
WireOutgetValueOut in interface WireOutpublic Wire writeComment(CharSequence s)
writeComment in interface WireOutpublic WireOut addPadding(int paddingToAdd)
addPadding in interface WireOutCopyright © 2015. All rights reserved.