public class JSONWire extends TextWire
At the moment, this is a cut down version of the YAML wire format.
TextWire.TextValueInWireIn.HeaderTypeWireOut.EndOfWire| Modifier and Type | Field and Description |
|---|---|
static @NotNull net.openhft.chronicle.bytes.Bytes<byte[]> |
ULL |
BINARY, lineStart, readContext, TYPE_STR, valueIn, writeContextsb, TYPE, valueOutbytes, 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 TextWire.TextValueIn |
createValueIn() |
protected @NotNull net.openhft.chronicle.wire.JSONWire.JSONValueOut |
createValueOut() |
protected Class |
defaultKeyClass() |
protected void |
escape0(@NotNull CharSequence s,
@NotNull net.openhft.chronicle.wire.Quotes quotes) |
static @NotNull JSONWire |
from(@NotNull String text) |
protected @NotNull net.openhft.chronicle.bytes.StopCharsTester |
getStrictEscapingEndOfText() |
protected @NotNull net.openhft.chronicle.wire.Quotes |
needsQuotes(@NotNull CharSequence s) |
protected @NotNull StringBuilder |
readField(@NotNull StringBuilder sb) |
protected @NotNull Supplier<net.openhft.chronicle.bytes.StopCharsTester> |
strictEndOfTextEscaping()
Deprecated.
|
@NotNull TextWire |
useTextDocuments() |
boolean |
useTypes() |
JSONWire |
useTypes(boolean outputTypes) |
ValueOut |
writeEvent(Class expectedType,
Object eventKey) |
void |
writeStartEvent()
Start an event object, mostly for internal use.
|
acquireWritingDocument, classLookup, classLookup, clear, consumeDocumentStart, consumePadding, consumePadding, consumeWhiteSpace, fromFile, getEscapingEndEventName, getEscapingEndOfText, getEscapingQuotes, getValueIn, 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, unescape, useBinaryDocuments, useSelfDescribingMessage, writingDocument, writingIsCompleteacquireStringBuilder, addPadding, addTimeStamps, addTimeStamps, append, append, appendU4, bytes, dropDefault, getValueOut, trimFirstCurly, trimFirstCurly, write, write, write, writeComment, writeEndEvent, writeObjectbytesComment, commentListener, endOfWire, enterHeader, forceNotInsideHeader, headerNumber, headerNumber, headNumberCheck, isInsideHeader, notCompleteIsNotPresent, notCompleteIsNotPresent, objectInput, objectOutput, parent, parent, pauser, pauser, readAndSetLength, readDataHeader, readFirstHeader, readFirstHeader, readMetaDataHeader, updateFirstHeader, updateFirstHeader, updateHeader, usePadding, usePadding, writeEndOfWire, writeFirstHeaderclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitnewYamlWireOnHeapasText, endEvent, hasMore, hintReadInputOrder, isEmpty, isEndEvent, isNotEmptyAfterPadding, rawReadData, read, readAlignTo, readAllAsMap, readDataHeader, readDocument, readDocument, readEventName, startEventmethodReader, readBytes, readBytes, readDocument, readMap, readText, readTextpadToCacheAlign, writeAlignTo, writeAllAsMap, writeDocument, writeEventId, writeEventId, writeEventName, writeEventName, writeNotCompleteDocument, writingDocumentnewTwoLongReferencebuilder, 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)
public static String asText(@NotNull @NotNull Wire wire) throws net.openhft.chronicle.core.io.InvalidMarshallableException
net.openhft.chronicle.core.io.InvalidMarshallableExceptionprotected Class defaultKeyClass()
defaultKeyClass in class TextWirepublic JSONWire useTypes(boolean outputTypes)
public boolean useTypes()
@NotNull public @NotNull TextWire useTextDocuments()
useTextDocuments in class TextWire@NotNull protected @NotNull net.openhft.chronicle.wire.JSONWire.JSONValueOut createValueOut()
createValueOut in class YamlWireOut<TextWire>@NotNull protected @NotNull TextWire.TextValueIn createValueIn()
createValueIn in class TextWirepublic void copyTo(@NotNull
@NotNull WireOut wire)
throws net.openhft.chronicle.core.io.InvalidMarshallableException
public void copyOne(@NotNull
@NotNull WireOut wire,
boolean inMap,
boolean topLevel)
throws net.openhft.chronicle.core.io.InvalidMarshallableException
net.openhft.chronicle.core.io.InvalidMarshallableException@NotNull
protected @NotNull net.openhft.chronicle.wire.Quotes needsQuotes(@NotNull
@NotNull CharSequence s)
needsQuotes in class YamlWireOut<TextWire>protected void escape0(@NotNull
@NotNull CharSequence s,
@NotNull
@NotNull net.openhft.chronicle.wire.Quotes quotes)
escape0 in class YamlWireOut<TextWire>public ValueOut writeEvent(Class expectedType, Object eventKey) throws net.openhft.chronicle.core.io.InvalidMarshallableException
writeEvent in interface WireOutwriteEvent in class YamlWireOut<TextWire>net.openhft.chronicle.core.io.InvalidMarshallableExceptionpublic void writeStartEvent()
WireOutwriteStartEvent in interface WireOutwriteStartEvent in class YamlWireOut<TextWire>@NotNull protected @NotNull StringBuilder readField(@NotNull @NotNull StringBuilder sb)
@NotNull protected @NotNull net.openhft.chronicle.bytes.StopCharsTester getStrictEscapingEndOfText()
getStrictEscapingEndOfText in class TextWire@NotNull @Deprecated protected @NotNull Supplier<net.openhft.chronicle.bytes.StopCharsTester> strictEndOfTextEscaping()
strictEndOfTextEscaping in class TextWireCopyright © 2023. All rights reserved.