public class TextWire extends Object implements Wire, InternalWireIn
| Modifier and Type | Field and Description |
|---|---|
static net.openhft.chronicle.bytes.BytesStore |
TYPE |
| Constructor and Description |
|---|
TextWire(net.openhft.chronicle.bytes.Bytes bytes) |
TextWire(net.openhft.chronicle.bytes.Bytes bytes,
boolean use8bit) |
| Modifier and Type | Method and Description |
|---|---|
WireOut |
addPadding(int paddingToAdd) |
void |
append(CharSequence cs) |
void |
append(CharSequence cs,
int offset) |
static String |
asText(Wire wire) |
net.openhft.chronicle.bytes.Bytes<?> |
bytes() |
void |
clear() |
void |
copyTo(WireOut wire) |
static TextWire |
from(String text) |
ValueIn |
getValueIn()
Obtain the value in (for internal use)
|
ValueOut |
getValueOut()
Obtain the value out (for internal use)
|
boolean |
hasMore() |
boolean |
isReady() |
net.openhft.chronicle.core.values.IntValue |
newIntReference() |
net.openhft.chronicle.core.values.LongArrayValues |
newLongArrayReference() |
net.openhft.chronicle.core.values.LongValue |
newLongReference() |
void |
parseUntil(StringBuilder sb,
net.openhft.chronicle.bytes.StopCharsTester testers) |
void |
parseUntil(StringBuilder sb,
net.openhft.chronicle.bytes.StopCharTester testers) |
void |
parseWord(StringBuilder sb) |
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, waitwriteAlignTo, writeDocument, writeEventName, writeNotReadyDocumentreadAlignTo, readDocument, readDocument, readEventNamepublic TextWire(net.openhft.chronicle.bytes.Bytes bytes,
boolean use8bit)
public TextWire(net.openhft.chronicle.bytes.Bytes bytes)
public static <ACS extends Appendable & CharSequence> void unescape(@NotNull ACS sb)
public void setReady(boolean ready)
setReady in interface InternalWireIn@NotNull public ValueIn read()
WireIn@NotNull public ValueIn read(@NotNull WireKey key)
WireIn@NotNull public ValueIn read(@NotNull StringBuilder name)
WireIn@NotNull public ValueIn getValueIn()
WireIngetValueIn in interface WireIn@NotNull public Wire readComment(@NotNull StringBuilder s)
readComment in interface WireIn@NotNull public net.openhft.chronicle.bytes.Bytes<?> bytes()
bytes in interface WireCommonpublic boolean hasMore()
@NotNull public ValueOut write()
WireOut@NotNull public ValueOut write(@NotNull WireKey key)
WireOut@NotNull public ValueOut writeValue()
WireOutwriteValue in interface WireOut@NotNull public ValueOut getValueOut()
WireOutgetValueOut in interface WireOut@NotNull public Wire writeComment(@NotNull 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.core.values.LongArrayValues newLongArrayReference()
newLongArrayReference in interface WireCommonpublic void parseWord(StringBuilder sb)
public void parseUntil(StringBuilder sb, net.openhft.chronicle.bytes.StopCharTester testers)
public void parseUntil(StringBuilder sb, net.openhft.chronicle.bytes.StopCharsTester testers)
public void append(CharSequence cs)
public void append(CharSequence cs, int offset)
Copyright © 2015. All rights reserved.