Class DirectoryResources

All Implemented Interfaces:
ResourceFinder, ResourceWriter

public class DirectoryResources extends ResourceFinderDirectories implements ResourceWriter
This class offers ResourceFinder and ResourceWriter capabilities for resources that are stored as files in a directory on the file system.

Resource names are relative paths inside the directory, where a / separator maps to a sub-directory. The directory is created when it doesn't exist yet and the content is stored as UTF-8.

Since:
1.10
See Also:
  • Constructor Details

    • DirectoryResources

      public DirectoryResources(File directory)
      Creates a new instance for the provided directory.

      The directory will be created when it doesn't exist yet.

      Parameters:
      directory - the directory that the resources are stored in
      Since:
      1.10
  • Method Details