public class JSONWire extends TextWire
At the moment, this is a cut down version of the YAML wire format.
WireIn.HeaderType| Modifier and Type | Field and Description |
|---|---|
static @NotNull net.openhft.chronicle.bytes.Bytes<byte[]> |
ULL |
BINARY, lineStart, TYPE, TYPE_STR, valueInbytes, classLookup, commentListener, DEFAULT_USE_PADDING, parent, use8bitMARSHALLABLE_IN_INTERN_SIZE| Constructor and Description |
|---|
JSONWire() |
JSONWire(@NotNull net.openhft.chronicle.bytes.Bytes<?> bytes) |
JSONWire(@NotNull net.openhft.chronicle.bytes.Bytes<?> bytes,
boolean use8bit) |
| Modifier and Type | Method and Description |
|---|---|
static String |
asText(@NotNull Wire wire) |
void |
copyOne(@NotNull WireOut wire,
boolean inMap,
boolean topLevel) |
void |
copyTo(@NotNull WireOut wire) |
protected @NotNull net.openhft.chronicle.wire.TextWire.TextValueIn |
createValueIn() |
protected @NotNull net.openhft.chronicle.wire.TextWire.TextValueOut |
createValueOut() |
protected Class |
defaultKeyClass() |
static @NotNull JSONWire |
from(@NotNull String text) |
protected @NotNull net.openhft.chronicle.wire.Quotes |
needsQuotesEscaped(@NotNull CharSequence s) |
protected @NotNull StringBuilder |
readField(@NotNull StringBuilder sb) |
protected @NotNull net.openhft.chronicle.wire.TextStopCharsTesters |
strictEndOfText()
Deprecated.
|
protected @NotNull Supplier<net.openhft.chronicle.bytes.StopCharsTester> |
strictEndOfTextEscaping() |
boolean |
useTypes() |
JSONWire |
useTypes(boolean outputTypes) |
ValueOut |
writeEvent(Class expectedType,
Object eventKey) |
void |
writeStartEvent()
Start an event object, mostly for internal use.
|
acquireStringBuilder, acquireWritingDocument, addPadding, addTimeStamps, addTimeStamps, append, append, bytes, classLookup, classLookup, clear, consumeDocumentStart, consumePadding, consumePadding, consumeWhiteSpace, dropDefault, escape0, fromFile, getEscapingEndEventName, getEscapingEndOfText, getEscapingQuotes, getStrictEscapingEndOfText, getValueIn, getValueOut, hasMetaDataPrefix, initReadContext, isBinary, load, methodReaderBuilder, methodWriter, methodWriterBuilder, newBooleanReference, newIntArrayReference, newIntReference, newLongArrayReference, newLongReference, parseUntil, parseUntil, parseWord, peekStringIgnoreCase, read, read, read, read2, readCode, readComment, readEvent, readEventNumber, readingDocument, readingDocument, readingPeekYaml, readObject, reset, strict, strict, toString, trimFirstCurly, trimFirstCurly, unescape, useBinaryDocuments, useSelfDescribingMessage, useTextDocuments, write, write, write, writeComment, writeEndEvent, writeObject, writingDocumentbytesComment, commentListener, endUse, enterHeader, forceNotInsideHeader, headerNumber, headerNumber, headNumberCheck, isInsideHeader, notCompleteIsNotPresent, notCompleteIsNotPresent, objectInput, objectOutput, parent, parent, pauser, pauser, readAndSetLength, readDataHeader, readFirstHeader, readFirstHeader, readMetaDataHeader, startUse, updateFirstHeader, updateHeader, usePadding, usePadding, writeEndOfWire, writeFirstHeaderclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitheaderNumber, newYamlWireOnHeapasText, commentListener, endEvent, hasMore, hintReadInputOrder, isEmpty, isEndEvent, isNotEmptyAfterPadding, objectInput, rawReadData, read, readAlignTo, readAllAsMap, readAndSetLength, readDataHeader, readDataHeader, readDocument, readDocument, readEventName, readFirstHeader, readFirstHeader, readMetaDataHeader, startEventmethodReader, readBytes, readBytes, readDocument, readMap, readText, readTextenterHeader, objectOutput, padToCacheAlign, updateFirstHeader, updateHeader, writeAlignTo, writeAllAsMap, writeDocument, writeEndOfWire, writeEventId, writeEventId, writeEventName, writeEventName, writeFirstHeader, writeNotCompleteDocument, writingDocumentbytesComment, endUse, headerNumber, newTwoLongReference, notCompleteIsNotPresent, notCompleteIsNotPresent, parent, parent, pauser, pauser, startUse, usePadding, usePaddingbuilder, methodWriter, methodWriterBuilder, recordHistory, writeBytes, writeDocument, writeDocument, writeMap, writeMessage, writeMessage, writeText@NotNull public static final @NotNull net.openhft.chronicle.bytes.Bytes<byte[]> ULL
public JSONWire()
public JSONWire(@NotNull
@NotNull net.openhft.chronicle.bytes.Bytes<?> bytes,
boolean use8bit)
public JSONWire(@NotNull
@NotNull net.openhft.chronicle.bytes.Bytes<?> bytes)
protected Class defaultKeyClass()
defaultKeyClass in class TextWirepublic JSONWire useTypes(boolean outputTypes)
public boolean useTypes()
@NotNull protected @NotNull net.openhft.chronicle.wire.TextWire.TextValueOut createValueOut()
createValueOut in class TextWire@NotNull protected @NotNull net.openhft.chronicle.wire.TextWire.TextValueIn createValueIn()
createValueIn in class TextWirepublic void copyTo(@NotNull
@NotNull WireOut wire)
public void copyOne(@NotNull
@NotNull WireOut wire,
boolean inMap,
boolean topLevel)
@NotNull
protected @NotNull net.openhft.chronicle.wire.Quotes needsQuotesEscaped(@NotNull
@NotNull CharSequence s)
needsQuotesEscaped in class TextWirepublic ValueOut writeEvent(Class expectedType, Object eventKey)
writeEvent in interface WireOutwriteEvent in class TextWirepublic void writeStartEvent()
WireOutwriteStartEvent in interface WireOutwriteStartEvent in class TextWire@NotNull protected @NotNull StringBuilder readField(@NotNull @NotNull StringBuilder sb)
@Deprecated @NotNull protected @NotNull net.openhft.chronicle.wire.TextStopCharsTesters strictEndOfText()
strictEndOfText in class TextWire@NotNull protected @NotNull Supplier<net.openhft.chronicle.bytes.StopCharsTester> strictEndOfTextEscaping()
strictEndOfTextEscaping in class TextWireCopyright © 2022. All rights reserved.