Class ImportUtil

java.lang.Object
com.bluebell.greenhouse.sol.util.ImportUtil

public final class ImportUtil extends Object
Utilities for file-based imports.
Version:
1.0.8
Author:
Stephen Prizio
  • Method Details

    • createTempImportFile

      public static File createTempImportFile(String prefix, String fileName) throws IOException
      Creates a temporary import file using the original file extension when available.
      Parameters:
      prefix - temp file prefix
      fileName - original file name
      Returns:
      File
      Throws:
      IOException - io exception
    • resolveCsvDelimiter

      public static String resolveCsvDelimiter(File file) throws IOException
      Resolves the delimiter to use for the given CSV file.
      Parameters:
      file - File
      Returns:
      delimiter
      Throws:
      IOException - io exception