Class ResourceIOUtils


  • public class ResourceIOUtils
    extends Object
    Resource file Input / Output utility methods
    Since:
    2.0.1
    Author:
    osbornb
    • Constructor Detail

      • ResourceIOUtils

        public ResourceIOUtils()
    • Method Detail

      • parseSQLStatements

        public static List<String> parseSQLStatements​(String path,
                                                      String name)
        Parse the SQL statements for the base resource path and sql file name
        Parameters:
        path - base resource path
        name - sql file name
        Returns:
        list of sql statements
      • parseSQLStatements

        public static List<String> parseSQLStatements​(String resourceName)
        Parse the SQL statements for the resource name
        Parameters:
        resourceName - resource name
        Returns:
        list of sql statements
      • parseSQLStatements

        public static List<String> parseSQLStatements​(InputStream stream)
        Parse the SQL statements for the input stream
        Parameters:
        stream - input stream
        Returns:
        list of sql statements