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

public abstract class FreeableResource extends OrchidResource

public abstract

An abstract concept of a 'freeable' resource, that is one that is able to look its contents back up, and so can be safely 'freed' when requested to save memory. Such an example would be a file, because having a reference to the file makes it possible to get rid of the actual contents when needed because the file can be read back into memory when the data is needed.

Constructors

FreeableResource(OrchidReference reference) public

Parameters:

Methods

void loadContent() protected

void free() public

String getContent() public
Method Annotations:
@Override

String getRawContent() public
Method Annotations:
@Override

JSONElement getEmbeddedData() public
Method Annotations:
@Override

JSONElement queryEmbeddedData(String pointer) public
Method Annotations:
@Override

Parameters:
  • String pointer