Class FixedWidthConfigurationReader

    • Constructor Detail

      • FixedWidthConfigurationReader

        public FixedWidthConfigurationReader()
    • Method Detail

      • readFromSasFormatFile

        public FixedWidthConfiguration readFromSasFormatFile​(String encoding,
                                                             org.apache.metamodel.util.Resource resource,
                                                             boolean failOnInconsistentLineWidth)
        Reads a FixedWidthConfiguration based on a SAS 'format file', described here.
        Parameters:
        encoding - the format file encoding
        resource - the format file resource
        failOnInconsistentLineWidth - flag specifying whether inconsistent line should stop processing or not
        Returns:
        a FixedWidthConfiguration object to use
      • readFromSasInputDefinition

        public FixedWidthConfiguration readFromSasInputDefinition​(String encoding,
                                                                  org.apache.metamodel.util.Resource resource,
                                                                  boolean failOnInconsistentLineWidth)
        Reads a FixedWidthConfiguration based on a SAS INPUT declaration. The reader method also optionally will look for a LABEL definition for column naming.
        Parameters:
        encoding - the format file encoding
        resource - the format file resource
        failOnInconsistentLineWidth - flag specifying whether inconsistent line should stop processing or not
        Returns:
        a FixedWidthConfiguration object to use