Package org.apache.metamodel.fixedwidth
Class EbcdicConfiguration
- java.lang.Object
-
- org.apache.metamodel.util.BaseObject
-
- org.apache.metamodel.fixedwidth.FixedWidthConfiguration
-
- org.apache.metamodel.fixedwidth.EbcdicConfiguration
-
- All Implemented Interfaces:
Serializable
public final class EbcdicConfiguration extends FixedWidthConfiguration
Special fixed-width configuration for EBCDIC files.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.apache.metamodel.fixedwidth.FixedWidthConfiguration
DEFAULT_COLUMN_NAME_LINE, NO_COLUMN_NAME_LINE
-
-
Constructor Summary
Constructors Constructor Description EbcdicConfiguration(int columnNameLineNumber, String encoding, int[] valueWidths, boolean failOnInconsistentLineWidth, boolean skipEbcdicHeader, boolean eolPresent)EbcdicConfiguration(int columnNameLineNumber, String encoding, int fixedValueWidth, boolean failOnInconsistentLineWidth, boolean skipEbcdicHeader, boolean eolPresent)EbcdicConfiguration(int columnNameLineNumber, org.apache.metamodel.schema.naming.ColumnNamingStrategy columnNamingStrategy, String encoding, int[] valueWidths, boolean failOnInconsistentLineWidth, boolean skipEbcdicHeader, boolean eolPresent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisEolPresent()Determines if the input file contains new line characters.booleanisSkipEbcdicHeader()Determines if the input file contains a header that should be skipped before reading records data.-
Methods inherited from class org.apache.metamodel.fixedwidth.FixedWidthConfiguration
decorateIdentity, getColumnNameLineNumber, getColumnNamingStrategy, getEncoding, getFixedValueWidth, getValueWidth, getValueWidths, isConstantValueWidth, isFailOnInconsistentLineWidth, toString
-
-
-
-
Constructor Detail
-
EbcdicConfiguration
public EbcdicConfiguration(int columnNameLineNumber, String encoding, int fixedValueWidth, boolean failOnInconsistentLineWidth, boolean skipEbcdicHeader, boolean eolPresent)
-
EbcdicConfiguration
public EbcdicConfiguration(int columnNameLineNumber, String encoding, int[] valueWidths, boolean failOnInconsistentLineWidth, boolean skipEbcdicHeader, boolean eolPresent)
-
EbcdicConfiguration
public EbcdicConfiguration(int columnNameLineNumber, org.apache.metamodel.schema.naming.ColumnNamingStrategy columnNamingStrategy, String encoding, int[] valueWidths, boolean failOnInconsistentLineWidth, boolean skipEbcdicHeader, boolean eolPresent)
-
-
Method Detail
-
isSkipEbcdicHeader
public boolean isSkipEbcdicHeader()
Determines if the input file contains a header that should be skipped before reading records data.- Returns:
- a boolean indicating whether or not to skip EBCDIC header.
-
isEolPresent
public boolean isEolPresent()
Determines if the input file contains new line characters.- Returns:
- a boolean indicating whether or not the input contains new line characters.
-
-