public class TextWire extends Object implements Wire, InternalWire
Modifier and Type | Field and Description |
---|---|
protected net.openhft.chronicle.bytes.Bytes<?> |
bytes |
protected long |
lineStart |
static net.openhft.chronicle.bytes.BytesStore |
TYPE |
protected boolean |
use8bit |
protected net.openhft.chronicle.wire.TextWire.TextValueIn |
valueIn |
protected net.openhft.chronicle.wire.TextWire.TextValueOut |
valueOut |
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,
int length) |
static String |
asText(Wire wire) |
net.openhft.chronicle.bytes.Bytes<?> |
bytes() |
void |
clear() |
void |
copyTo(WireOut wire) |
protected net.openhft.chronicle.wire.TextWire.TextValueIn |
createValueIn() |
protected net.openhft.chronicle.wire.TextWire.TextValueOut |
createValueOut() |
static TextWire |
from(String text) |
static TextWire |
fromFile(String name) |
ValueIn |
getValueIn()
Obtain the value in (for internal use)
|
ValueOut |
getValueOut()
Obtain the value out
|
boolean |
hasMore() |
boolean |
isReady() |
protected net.openhft.chronicle.wire.Quotes |
needsQuotes(CharSequence s) |
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) |
protected StringBuilder |
readField(StringBuilder sb) |
DocumentContext |
readingDocument() |
DocumentContext |
readingDocument(long readLocation) |
Object |
readObject() |
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) |
void |
writeObject(Object o) |
DocumentContext |
writingDocument(boolean metaData) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
rawReadData, readAlignTo, readDocument, readDocument, readEventName
writeAlignTo, writeDocument, writeEventName, writeNotReadyDocument
public static final net.openhft.chronicle.bytes.BytesStore TYPE
protected final net.openhft.chronicle.wire.TextWire.TextValueOut valueOut
protected final net.openhft.chronicle.wire.TextWire.TextValueIn valueIn
protected final boolean use8bit
protected net.openhft.chronicle.bytes.Bytes<?> bytes
protected long lineStart
public TextWire(net.openhft.chronicle.bytes.Bytes bytes, boolean use8bit)
public TextWire(net.openhft.chronicle.bytes.Bytes bytes)
public static TextWire fromFile(String name) throws IOException
fromFile
in interface Wire
IOException
public static <ACS extends Appendable & CharSequence> void unescape(@NotNull ACS sb)
public DocumentContext writingDocument(boolean metaData)
writingDocument
in interface WireOut
public DocumentContext readingDocument()
readingDocument
in interface WireIn
public DocumentContext readingDocument(long readLocation)
readingDocument
in interface WireIn
@NotNull protected net.openhft.chronicle.wire.TextWire.TextValueOut createValueOut()
@NotNull protected net.openhft.chronicle.wire.TextWire.TextValueIn createValueIn()
public void setReady(boolean ready)
setReady
in interface InternalWire
@NotNull public ValueIn read()
WireIn
@NotNull protected StringBuilder readField(@NotNull StringBuilder sb)
@NotNull public ValueIn read(@NotNull WireKey key)
WireIn
@NotNull public ValueIn read(@NotNull StringBuilder name)
WireIn
@NotNull public ValueIn getValueIn()
WireIn
getValueIn
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 WireCommon
public boolean hasMore()
@NotNull public ValueOut write()
WireOut
@NotNull public ValueOut write(@NotNull WireKey key)
WireOut
@NotNull public ValueOut getValueOut()
WireOut
getValueOut
in interface WireOut
@NotNull public Wire writeComment(@NotNull CharSequence s)
writeComment
in interface WireOut
@NotNull public WireOut addPadding(int paddingToAdd)
addPadding
in interface WireOut
protected net.openhft.chronicle.wire.Quotes needsQuotes(@NotNull CharSequence s)
@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 WireCommon
public 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, int length)
public Object readObject()
public void writeObject(Object o)
Copyright © 2016. All rights reserved.