public class CSVWire extends TextWire
TextWire.TextValueInWireIn.HeaderTypeWireOut.EndOfWireBINARY, lineStart, readContext, TYPE_STR, valueIn, writeContextsb, TYPE, valueOutbytes, classLookup, commentListener, DEFAULT_USE_PADDING, parent, use8bitMARSHALLABLE_IN_INTERN_SIZE| Constructor and Description |
|---|
CSVWire(@NotNull net.openhft.chronicle.bytes.Bytes<?> bytes)
Constructs a new CSVWire instance from a given byte source with default character set.
|
CSVWire(@NotNull net.openhft.chronicle.bytes.Bytes<?> bytes,
boolean use8bit)
Constructs a new CSVWire instance from a given byte source and a flag indicating
the use of 8-bit characters.
|
| Modifier and Type | Method and Description |
|---|---|
void |
consumePadding()
Consumes and discards any padding that may exist between the current read position and the next piece of meaningful data.
|
void |
consumePaddingStart()
Consumes padding and whitespace at the beginning of the data source.
|
protected @NotNull TextWire.TextValueIn |
createValueIn()
Creates and returns a new instance of TextValueIn.
|
protected @NotNull net.openhft.chronicle.wire.CSVWire.CSVValueOut |
createValueOut()
Creates and returns a new instance of
YamlValueOut. |
static @NotNull CSVWire |
from(@NotNull String text)
Constructs a new CSVWire instance from a provided string text.
|
static @NotNull CSVWire |
fromFile(String name)
Constructs a new CSVWire instance by reading data from a specified file.
|
@NotNull ValueIn |
read(@NotNull StringBuilder name)
Reads a specific field based on the provided field name.
|
@NotNull ValueIn |
read(@NotNull WireKey key)
Reads the next field if present.
|
@NotNull Wire |
readComment(@NotNull StringBuilder s)
Reads a comment from the Wire data and appends it to the provided StringBuilder.
|
@NotNull StringBuilder |
readField(@NotNull StringBuilder sb)
Reads the field from the current position of the wire and appends it to the given StringBuilder.
|
acquireWritingDocument, asText, classLookup, classLookup, clear, consumeDocumentStart, consumePadding, consumeWhiteSpace, copyTo, defaultKeyClass, getEscapingEndEventName, getEscapingEndOfText, getEscapingQuotes, getStrictEscapingEndOfText, getValueIn, hasMetaDataPrefix, initReadContext, isBinary, load, methodReaderBuilder, methodWriter, methodWriterBuilder, newBooleanReference, newIntArrayReference, newIntReference, newLongArrayReference, newLongReference, parseUntil, parseUntil, parseWord, peekStringIgnoreCase, read, read2, readCode, readEvent, readEventNumber, readingDocument, readingDocument, readingPeekYaml, readObject, reset, rollbackIfNotComplete, strict, strict, toString, unescape, useBinaryDocuments, useSelfDescribingMessage, useTextDocuments, writingDocument, writingIsCompleteacquireStringBuilder, addPadding, addTimeStamps, addTimeStamps, append, append, appendU4, bytes, dropDefault, escape0, getValueOut, needsQuotes, trimFirstCurly, trimFirstCurly, write, write, write, writeComment, writeEndEvent, writeEvent, writeObject, writeStartEventbytesComment, 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, waitnewYamlWireOnHeapendEvent, 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, methodWriterBuilder, recordHistory, writeBytes, writeDocument, writeDocument, writeMap, writeMessage, writeMessage, writeTextpublic CSVWire(@NotNull
@NotNull net.openhft.chronicle.bytes.Bytes<?> bytes,
boolean use8bit)
bytes - The byte source containing CSV data.use8bit - A flag indicating whether to use 8-bit characters or not.public CSVWire(@NotNull
@NotNull net.openhft.chronicle.bytes.Bytes<?> bytes)
bytes - The byte source containing CSV data.@NotNull public static @NotNull CSVWire fromFile(String name) throws IOException
name - The name of the file to read CSV data from.IOException - If any I/O error occurs while reading the file.@NotNull public static @NotNull CSVWire from(@NotNull @NotNull String text)
text - The string containing CSV data.@NotNull protected @NotNull net.openhft.chronicle.wire.CSVWire.CSVValueOut createValueOut()
YamlWireOutYamlValueOut.createValueOut in class YamlWireOut<TextWire>@NotNull protected @NotNull TextWire.TextValueIn createValueIn()
TextWirecreateValueIn in class TextWire@NotNull public @NotNull StringBuilder readField(@NotNull @NotNull StringBuilder sb)
TextWirepublic void consumePaddingStart()
public void consumePadding()
WireInconsumePadding in interface WireInconsumePadding in class TextWire@NotNull public @NotNull ValueIn read(@NotNull @NotNull WireKey key)
WireInWireKey.@NotNull public @NotNull ValueIn read(@NotNull @NotNull StringBuilder name)
WireIn@NotNull public @NotNull Wire readComment(@NotNull @NotNull StringBuilder s)
WireInreadComment in interface WireInreadComment in class TextWires - StringBuilder to which the comment will be appended.Copyright © 2024. All rights reserved.