|
||||||||||
| 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.JaiLoader
public class JaiLoader
This is an image loader back-end that uses Java Advanced Imaging to load image files, if its classes are present in the classpath.
More information about Java Advanced Imaging can be obtained from http://java.sun.com/products/java-media/jai.
Plug-ins for additional formats can be obtained from http://java.sun.com/products/java-media/jai/downloads/download-iio.html.
| Constructor Summary | |
|---|---|
JaiLoader()
|
|
| 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 JaiLoader()
| Method Detail |
|---|
public Image loadFromBytes(byte[] data,
Set<String> errors)
throws ContentManagerException
ImageContentLoaderBackend
loadFromBytes in class ImageContentLoaderBackenddata - 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
ContentManagerExceptionpublic boolean isBackendPresent()
ContentLoaderBackendThis 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 | |||||||||