In package com.eden.orchid.api.resources.resource

public final class JarResource extends FreeableResource

public final

A Resource type that provides a content to a template from a resource file contained with a jarfile. When used with renderTemplate() or renderString(), this resource will supply the page.content variable to the template renderer as the file contents after having the embedded data removed, and any embedded data will be available in the renderer through the page variable. When used with renderRaw(), the raw contents (after having the embedded data removed) will be written directly instead.

Constructors

JarResource(OrchidContext context, JarFile jarFile, JarEntry jarEntry) public

Parameters:
JarResource(JarFile jarFile, JarEntry jarEntry, OrchidReference reference) public

Parameters:

Methods

void loadContent() protected
Method Annotations:
@Override

InputStream getContentStream() public
Method Annotations:
@Override