|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.uwyn.rife.cmf.loader.ImageContentLoaderBackend
com.uwyn.rife.cmf.loader.image.JimiLoader
public class JimiLoader
This is an image loader back-end that uses Jimi to load image files, if its classes are present in the classpath.
More information about Jimi can be obtained from http://java.sun.com/products/jimi.
Constructor Summary | |
---|---|
JimiLoader()
|
Method Summary | |
---|---|
boolean |
isBackendPresent()
Indicates whether the back-end is present. |
Image |
loadFromBytes(byte[] data,
Set<String> errors)
Loads the data from a byte array. |
Methods inherited from class com.uwyn.rife.cmf.loader.ImageContentLoaderBackend |
---|
load |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JimiLoader()
Method Detail |
---|
public Image loadFromBytes(byte[] data, Set<String> errors) throws ContentManagerException
ImageContentLoaderBackend
loadFromBytes
in class ImageContentLoaderBackend
data
- the raw data that has to be loadederrors
- a set to which possible error messages will be added
Image
; or
null
if the raw data couldn't be loaded
ContentManagerException
public boolean isBackendPresent()
ContentLoaderBackend
This can be important for optional libraries that should only actually try to load the data when the required classes are available in the classpath.
true
if the back-end is present; or
false
if this is not the case
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |