Package com.univocity.parsers.fixed
Class FixedWidthFieldLengths
java.lang.Object
com.univocity.parsers.fixed.FixedWidthFields
com.univocity.parsers.fixed.FixedWidthFieldLengths
- All Implemented Interfaces:
Cloneable
Deprecated.
This class provides the name, length, alignment and padding of each field in a fixed-width record.
-
Constructor Summary
ConstructorsConstructorDescriptionFixedWidthFieldLengths
(int... fieldLengths) Deprecated.Creates a new instance initialized with the lengths of all fields in a fixed-width record.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.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. -
Method Summary
Methods inherited from class com.univocity.parsers.fixed.FixedWidthFields
addField, addField, addField, addField, addField, addField, addField, addField, addField, addField, addField, addField, addField, addField, addField, addField, clone, forParsing, forWriting, getAlignment, getAlignment, getAllLengths, getFieldAlignments, getFieldLengths, getFieldNames, getFieldPaddings, getFieldPaddings, getFieldsPerRecord, getFieldsToIgnore, getKeepPaddingFlags, indexOf, keepPaddingOn, keepPaddingOn, setAlignment, setAlignment, setFieldLength, setFieldLength, setHeadersIfPossible, setPadding, setPadding, stripPaddingFrom, stripPaddingFrom, toString
-
Constructor Details
-
FixedWidthFieldLengths
Deprecated.Defines a sequence of field names used to refer to columns in the input/output text of an entity, along with their lengths. The field names defined will be used as headers, having the same effect of a call toCommonSettings.setHeaders(String...)
.- Parameters:
fields
- aLinkedHashMap
containing the sequence of fields to be associated with each column in the input/output, with their respective length.
-
FixedWidthFieldLengths
Deprecated.Defines a sequence of field names used to refer to columns in the input/output text of an entity, along with their lengths. The field names defined will be used as headers, having the same effect of a call toCommonSettings.setHeaders(String...)
.- Parameters:
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.
-
FixedWidthFieldLengths
public FixedWidthFieldLengths(int... fieldLengths) Deprecated.Creates a new instance initialized with the lengths of all fields in a fixed-width record.- Parameters:
fieldLengths
- The number lengths of all fields in a fixed-width record. All lengths must be greater than 0.
-
FixedWidthFields
instead.