public class JSONWire extends TextWire
At the moment, this is a cut down version of the YAML wire format.
| Constructor and Description |
|---|
JSONWire(net.openhft.chronicle.bytes.Bytes bytes) |
JSONWire(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) |
void |
copyTo(WireOut wire) |
protected net.openhft.chronicle.wire.TextWire.TextValueIn |
createValueIn() |
protected net.openhft.chronicle.wire.TextWire.TextValueOut |
createValueOut() |
static JSONWire |
from(String text) |
boolean |
hasMore() |
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(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.
|
static <ACS extends Appendable & CharSequence> |
unescape(ACS sb) |
ValueOut |
write(WireKey key)
Write a key for wires that support fields.
|
Wire |
writeComment(CharSequence s) |
append, bytes, clear, fromFile, getValueIn, getValueOut, isReady, needsQuotes, newIntReference, newLongArrayReference, newLongReference, read, readComment, readField, readingDocument, readingDocument, readObject, setReady, toString, write, writeObject, writingDocumentclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitrawReadData, readAlignTo, readDocument, readDocument, readEventNamewriteAlignTo, writeDocument, writeEventName, writeNotReadyDocumentpublic JSONWire(net.openhft.chronicle.bytes.Bytes bytes,
boolean use8bit)
public JSONWire(net.openhft.chronicle.bytes.Bytes bytes)
public static <ACS extends Appendable & CharSequence> void unescape(@NotNull ACS sb)
@NotNull protected net.openhft.chronicle.wire.TextWire.TextValueOut createValueOut()
createValueOut in class TextWire@NotNull protected net.openhft.chronicle.wire.TextWire.TextValueIn createValueIn()
createValueIn in class TextWirepublic void copyTo(@NotNull
WireOut wire)
@NotNull public ValueIn read(@NotNull WireKey key)
WireIn@NotNull public ValueIn read(@NotNull StringBuilder name)
WireInpublic boolean hasMore()
@NotNull public ValueOut write(@NotNull WireKey key)
WireOut@NotNull public Wire writeComment(@NotNull CharSequence s)
writeComment in interface WireOutwriteComment in class TextWire@NotNull public WireOut addPadding(int paddingToAdd)
addPadding in interface WireOutaddPadding in class TextWirepublic void parseWord(StringBuilder sb)
public void parseUntil(StringBuilder sb, net.openhft.chronicle.bytes.StopCharTester testers)
parseUntil in class TextWirepublic void parseUntil(StringBuilder sb, net.openhft.chronicle.bytes.StopCharsTester testers)
parseUntil in class TextWirepublic void append(CharSequence cs)
public void append(CharSequence cs, int offset)
Copyright © 2016. All rights reserved.