Package app.babylon.table.io
Record Class ReadOptionsCsv
java.lang.Object
java.lang.Record
app.babylon.table.io.ReadOptionsCsv
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionReadOptionsCsv(char separator, char quote, int[] fixedWidths, Charset charset, boolean autoDetectOptions) Creates an instance of aReadOptionsCsvrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanDeprecated.booleanReturns the value of theautoDetectOptionsrecord component.static ReadOptionsCsv.Builderbuilder()charset()Returns the value of thecharsetrecord component.final booleanIndicates whether some other object is "equal to" this one.int[]Returns the value of thefixedWidthsrecord component.final inthashCode()Returns a hash code value for this object.charquote()Returns the value of thequoterecord component.charReturns the value of theseparatorrecord component.static ReadOptionsCsvstandard()final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ReadOptionsCsv
public ReadOptionsCsv(char separator, char quote, int[] fixedWidths, Charset charset, boolean autoDetectOptions) Creates an instance of aReadOptionsCsvrecord class.- Parameters:
separator- the value for theseparatorrecord componentquote- the value for thequoterecord componentfixedWidths- the value for thefixedWidthsrecord componentcharset- the value for thecharsetrecord componentautoDetectOptions- the value for theautoDetectOptionsrecord component
-
-
Method Details
-
standard
-
builder
-
fixedWidths
public int[] fixedWidths()Returns the value of thefixedWidthsrecord component.- Returns:
- the value of the
fixedWidthsrecord component
-
autoDetectEncoding
Deprecated.Returns whether CSV input options should be detected from the source sample.This is a compatibility alias for callers using the earlier name, when the detection only covered encoding.
- Returns:
- whether automatic CSV option detection is enabled
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
separator
public char separator()Returns the value of theseparatorrecord component.- Returns:
- the value of the
separatorrecord component
-
quote
public char quote()Returns the value of thequoterecord component.- Returns:
- the value of the
quoterecord component
-
charset
Returns the value of thecharsetrecord component.- Returns:
- the value of the
charsetrecord component
-
autoDetectOptions
public boolean autoDetectOptions()Returns the value of theautoDetectOptionsrecord component.- Returns:
- the value of the
autoDetectOptionsrecord component
-