Package jadex.commons
Class LazyResource
- java.lang.Object
- 
- jadex.commons.LazyResource
 
- 
 public class LazyResource extends java.lang.ObjectRepresentation of data loaded on first access. Used, e.g., for component type icons.
- 
- 
Field SummaryFields Modifier and Type Field Description protected java.lang.Class<?>clazzThe reference class for using correct package and class loader.protected byte[]dataThe resource, if already loaded.protected java.io.IOExceptionexceptionThe exception, if already failed.protected java.lang.StringpathThe resource path (relative to clazz or absolute).
 - 
Constructor SummaryConstructors Constructor Description LazyResource(java.lang.Class<?> clazz, java.lang.String path)Create a lazy resource.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]getData()Get the resource contents.
 
- 
- 
- 
Field Detail- 
clazzprotected java.lang.Class<?> clazz The reference class for using correct package and class loader.
 - 
pathprotected java.lang.String path The resource path (relative to clazz or absolute).
 - 
dataprotected byte[] data The resource, if already loaded.
 - 
exceptionprotected java.io.IOException exception The exception, if already failed.
 
- 
 
-