Class ResourceLoader


  • public class ResourceLoader
    extends Object
    • Field Detail

      • anyClass

        protected Class<?> anyClass
    • Constructor Detail

      • ResourceLoader

        public ResourceLoader()
      • ResourceLoader

        public ResourceLoader​(Class<?> anyClass)
        It can be used when there is a need to change the class loader.
        Parameters:
        anyClass - the base class to be used
    • Method Detail

      • getNormalizedFileName

        public static String getNormalizedFileName​(String fileName)
        This method replaces all special characters by an underscore
        Parameters:
        fileName - the filename to normalize
        Returns:
        the normalized filename
      • getAbsoluteResourceFolder

        public String getAbsoluteResourceFolder​(String resourcePath)
                                         throws DSSException
        This method converts the resource path to the absolute path in target folder.
        Parameters:
        resourcePath - resource path
        Returns:
        the absolute of the parent folder
        Throws:
        DSSException