code: public static String getFormatFromFlatFileLine(String line) {
          if (line == null || line.length() < 19)
              return null;
  
          String version = line.substring(16, 19).trim();
          String type = line.substring(0, 1).trim();
  
          if (NaaccrFormat.isVersionSupported(version) && NaaccrFormat.isRecordTypeSupported(type))
              return NaaccrFormat.getInstance(version, type).toString();
  
          return null;
      }
docs: Returns the NAACCR format of the given line in a flat file.
  <br/>
  This method assumes that the record type is available in column 1 (length 1) and
  the NAACCR version is available in column 17 (length 3)...
  @param line provided data line
  @return the NAACCR format, null if it cannot be determined