Interface ContentLoader

All Known Implementing Classes:
ContentLoaderSingleton, DefaultContentLoader

public interface ContentLoader
Interface for loading the content from a file resource.
Author:
Martin Lindström (martin@idsec.se), Stefan Santesson (stefan@idsec.se)
  • Method Summary

    Modifier and Type
    Method
    Description
    byte[]
    loadContent(String resource)
    Loads the contents of the given resource.
  • Method Details

    • loadContent

      byte[] loadContent(String resource) throws IOException
      Loads the contents of the given resource.

      Note: The Spring Framework style of representing a resource must be supported by implementations. For example: classpath:xyz.svg and file:/path/xyz.svg.

      Parameters:
      resource - the resource to load
      Returns:
      the contents as a byte array
      Throws:
      IOException - if the contents can not be loaded