Package org.apache.metamodel.fixedwidth
Class FixedWidthConfigurationReader
- java.lang.Object
-
- org.apache.metamodel.fixedwidth.FixedWidthConfigurationReader
-
public class FixedWidthConfigurationReader extends Object
Object capable of reading fixed width metadata from external sources and thereby producing an appropriateFixedWidthConfigurationto use with aFixedWidthDataContext.
-
-
Constructor Summary
Constructors Constructor Description FixedWidthConfigurationReader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FixedWidthConfigurationreadFromSasFormatFile(String encoding, org.apache.metamodel.util.Resource resource, boolean failOnInconsistentLineWidth)Reads aFixedWidthConfigurationbased on a SAS 'format file', described here.FixedWidthConfigurationreadFromSasInputDefinition(String encoding, org.apache.metamodel.util.Resource resource, boolean failOnInconsistentLineWidth)Reads aFixedWidthConfigurationbased on a SAS INPUT declaration.
-
-
-
Method Detail
-
readFromSasFormatFile
public FixedWidthConfiguration readFromSasFormatFile(String encoding, org.apache.metamodel.util.Resource resource, boolean failOnInconsistentLineWidth)
Reads aFixedWidthConfigurationbased on a SAS 'format file', described here.- Parameters:
encoding- the format file encodingresource- the format file resourcefailOnInconsistentLineWidth- flag specifying whether inconsistent line should stop processing or not- Returns:
- a
FixedWidthConfigurationobject to use
-
readFromSasInputDefinition
public FixedWidthConfiguration readFromSasInputDefinition(String encoding, org.apache.metamodel.util.Resource resource, boolean failOnInconsistentLineWidth)
Reads aFixedWidthConfigurationbased on a SAS INPUT declaration. The reader method also optionally will look for a LABEL definition for column naming.- Parameters:
encoding- the format file encodingresource- the format file resourcefailOnInconsistentLineWidth- flag specifying whether inconsistent line should stop processing or not- Returns:
- a
FixedWidthConfigurationobject to use
-
-