Package jadex.common
Class LazyResource
java.lang.Object
jadex.common.LazyResource
Representation of data loaded on first access.
Used, e.g., for component type icons.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Class
<?> The reference class for using correct package and class loader.protected byte[]
The resource, if already loaded.protected IOException
The exception, if already failed.protected String
The resource path (relative to clazz or absolute). -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
clazz
The reference class for using correct package and class loader. -
path
The resource path (relative to clazz or absolute). -
data
protected byte[] dataThe resource, if already loaded. -
exception
The exception, if already failed.
-
-
Constructor Details
-
LazyResource
Create a lazy resource.
-
-
Method Details
-
getData
Get the resource contents.- Throws:
IOException
-