public abstract class YamlWireOut<T extends YamlWireOut<T>> extends AbstractWire
WireIn.HeaderTypeWireOut.EndOfWire| Modifier and Type | Field and Description |
|---|---|
protected StringBuilder |
sb |
static net.openhft.chronicle.bytes.BytesStore |
TYPE |
protected net.openhft.chronicle.wire.YamlWireOut.YamlValueOut |
valueOut |
bytes, classLookup, commentListener, DEFAULT_USE_PADDING, parent, use8bitMARSHALLABLE_IN_INTERN_SIZE| Modifier | Constructor and Description |
|---|---|
protected |
YamlWireOut(@NotNull net.openhft.chronicle.bytes.Bytes bytes,
boolean use8bit) |
| Modifier and Type | Method and Description |
|---|---|
protected @NotNull StringBuilder |
acquireStringBuilder() |
T |
addPadding(int paddingToAdd) |
boolean |
addTimeStamps() |
T |
addTimeStamps(boolean addTimeStamps) |
void |
append(@NotNull CharSequence cs) |
void |
append(@NotNull CharSequence cs,
int offset,
int length) |
protected void |
appendU4(char ch) |
@NotNull net.openhft.chronicle.bytes.Bytes<?> |
bytes()
Returns the underlying
Bytes stored by the wire. |
protected @NotNull net.openhft.chronicle.wire.YamlWireOut.YamlValueOut |
createValueOut() |
T |
dropDefault(boolean dropDefault) |
protected void |
escape0(@NotNull CharSequence s,
@NotNull net.openhft.chronicle.wire.Quotes quotes) |
@NotNull ValueOut |
getValueOut()
Obtain the value out
|
protected @NotNull net.openhft.chronicle.wire.Quotes |
needsQuotes(@NotNull CharSequence s) |
boolean |
trimFirstCurly() |
T |
trimFirstCurly(boolean trimFirstCurly) |
@NotNull ValueOut |
write()
Write an empty filed marker
|
@NotNull ValueOut |
write(@NotNull CharSequence name) |
@NotNull ValueOut |
write(@NotNull WireKey key)
Write a key for wires that support fields.
|
T |
writeComment(@NotNull CharSequence s) |
void |
writeEndEvent() |
ValueOut |
writeEvent(Class expectedType,
Object eventKey) |
void |
writeObject(Object o) |
void |
writeStartEvent()
Start an event object, mostly for internal use.
|
bytesComment, classLookup, classLookup, clear, commentListener, endOfWire, enterHeader, forceNotInsideHeader, headerNumber, headerNumber, headNumberCheck, isInsideHeader, notCompleteIsNotPresent, notCompleteIsNotPresent, objectInput, objectOutput, parent, parent, pauser, pauser, readAndSetLength, readDataHeader, readEventNumber, readFirstHeader, readFirstHeader, readMetaDataHeader, updateFirstHeader, updateFirstHeader, updateHeader, usePadding, usePadding, writeEndOfWire, writeFirstHeaderclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfromFile, newYamlWireOnHeapasText, consumePadding, copyTo, endEvent, getValueIn, hasMetaDataPrefix, hasMore, hintReadInputOrder, isEmpty, isEndEvent, isNotEmptyAfterPadding, rawReadData, read, read, read, read, readAlignTo, readAllAsMap, readComment, readDataHeader, readDocument, readDocument, readEvent, readEventName, readingDocument, readingDocument, readingPeekYaml, startEventmethodReader, methodReaderBuilder, readBytes, readBytes, readDocument, readMap, readText, readTextacquireWritingDocument, padToCacheAlign, writeAlignTo, writeAllAsMap, writeDocument, writeEventId, writeEventId, writeEventName, writeEventName, writeNotCompleteDocument, writingDocument, writingDocument, writingIsCompleteisBinary, newBooleanReference, newIntArrayReference, newIntReference, newLongArrayReference, newLongReference, newTwoLongReference, reset, useSelfDescribingMessagebuilder, methodWriter, methodWriter, methodWriterBuilder, methodWriterBuilder, recordHistory, writeBytes, writeDocument, writeDocument, writeMap, writeMessage, writeMessage, writeTextpublic static final net.openhft.chronicle.bytes.BytesStore TYPE
protected final net.openhft.chronicle.wire.YamlWireOut.YamlValueOut valueOut
protected final StringBuilder sb
protected YamlWireOut(@NotNull
@NotNull net.openhft.chronicle.bytes.Bytes bytes,
boolean use8bit)
public boolean addTimeStamps()
public T addTimeStamps(boolean addTimeStamps)
@NotNull protected @NotNull net.openhft.chronicle.wire.YamlWireOut.YamlValueOut createValueOut()
@NotNull protected @NotNull StringBuilder acquireStringBuilder()
@NotNull public @NotNull net.openhft.chronicle.bytes.Bytes<?> bytes()
WireCommonBytes stored by the wire.bytes in interface WireCommonbytes in class AbstractWireBytes stored by the wire@NotNull public @NotNull ValueOut write()
WireOut@NotNull public @NotNull ValueOut write(@NotNull @NotNull WireKey key)
WireOut@NotNull public @NotNull ValueOut write(@NotNull @NotNull CharSequence name)
public ValueOut writeEvent(Class expectedType, Object eventKey) throws net.openhft.chronicle.core.io.InvalidMarshallableException
net.openhft.chronicle.core.io.InvalidMarshallableException@NotNull public T dropDefault(boolean dropDefault)
@NotNull public @NotNull ValueOut getValueOut()
WireOut@NotNull public T writeComment(@NotNull @NotNull CharSequence s)
@NotNull public T addPadding(int paddingToAdd)
protected void escape0(@NotNull
@NotNull CharSequence s,
@NotNull
@NotNull net.openhft.chronicle.wire.Quotes quotes)
protected void appendU4(char ch)
@NotNull
protected @NotNull net.openhft.chronicle.wire.Quotes needsQuotes(@NotNull
@NotNull CharSequence s)
public void append(@NotNull
@NotNull CharSequence cs)
public void append(@NotNull
@NotNull CharSequence cs,
int offset,
int length)
public void writeObject(Object o) throws net.openhft.chronicle.core.io.InvalidMarshallableException
net.openhft.chronicle.core.io.InvalidMarshallableExceptionpublic void writeStartEvent()
WireOutpublic void writeEndEvent()
public boolean trimFirstCurly()
public T trimFirstCurly(boolean trimFirstCurly)
trimFirstCurly - whether the top level curly brackets is droppedCopyright © 2023. All rights reserved.