FixedWidthFields instead.@Deprecated public class FixedWidthFieldLengths extends FixedWidthFields
| Constructor and Description |
|---|
FixedWidthFieldLengths(int... fieldLengths)
Deprecated.
Creates a new instance initialized with the lengths of all fields in a fixed-width record.
|
FixedWidthFieldLengths(LinkedHashMap<String,Integer> fields)
Deprecated.
Defines a sequence of field names used to refer to columns in the input/output text of an entity, along with their lengths.
|
FixedWidthFieldLengths(String[] headers,
int[] lengths)
Deprecated.
Defines a sequence of field names used to refer to columns in the input/output text of an entity, along with their lengths.
|
addField, addField, addField, addField, addField, addField, addField, addField, addField, addField, addField, addField, addField, addField, addField, addField, clone, forParsing, forWriting, getAlignment, getAlignment, getFieldAlignments, getFieldLengths, getFieldNames, getFieldPaddings, getFieldsPerRecord, indexOf, keepPaddingOn, keepPaddingOn, setAlignment, setAlignment, setFieldLength, setFieldLength, setPadding, setPadding, stripPaddingFrom, stripPaddingFrom, toStringpublic FixedWidthFieldLengths(LinkedHashMap<String,Integer> fields)
CommonSettings.setHeaders(String...).fields - a LinkedHashMap containing the sequence of fields to be associated with each column in the input/output, with their respective length.public FixedWidthFieldLengths(String[] headers, int[] lengths)
CommonSettings.setHeaders(String...).headers - the sequence of fields to be associated with each column in the input/outputlengths - the sequence of lengths to be associated with each given header. The size of this array must match the number of given headers.public FixedWidthFieldLengths(int... fieldLengths)
fieldLengths - The number lengths of all fields in a fixed-width record. All lengths must be greater than 0.Copyright © 2021 Univocity Software Pty Ltd. All rights reserved.