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 TypeMethodDescriptionbyte[]loadContent(String resource) Loads the contents of the given resource.
-
Method Details
-
loadContent
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.svgandfile:/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
-