Class DefaultResourceProvider

    • Constructor Detail

      • DefaultResourceProvider

        public DefaultResourceProvider()
    • Method Detail

      • targetOut

        public OutputStream targetOut​(String fileName)
        Description copied from interface: ResourceProvider
        For the filename, provide a OutputStream to write the file to. Generally, this is a File in the maven resources/cache directory of the current application.
        Specified by:
        targetOut in interface ResourceProvider
        Parameters:
        fileName - The name of the file to write
        Returns:
        the OutputStream to write the file to
      • targetIn

        public InputStream targetIn​(String fileName)
        Description copied from interface: ResourceProvider
        For the filename, provide an InputStream from which to read the file. Generally, this is a resource on the classpath of the application in resources/cache.
        Specified by:
        targetIn in interface ResourceProvider
        Parameters:
        fileName - The name of the resource to fetch
        Returns:
        The InputStream from which to read the resource
      • determineCacheResourceDir

        protected File determineCacheResourceDir()