|
||||||||||
| 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.ImageroReaderLoader
public class ImageroReaderLoader
This is an image loader back-end that uses ImageroReader to load image files, if its classes are present in the classpath.
More information about ImageroReader can be obtained from http://reader.imagero.com.
| Constructor Summary | |
|---|---|
ImageroReaderLoader()
|
|
| 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 ImageroReaderLoader()
| 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 | |||||||||