|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.uwyn.rife.cmf.loader.ImageContentLoaderBackend
public abstract class ImageContentLoaderBackend
This is an abstract class that should be implemented by all image content loader back-ends.
The load
method simply checks the
type of the data and delegates the handling to typed methods that should be
implemented by the back-ends.
Constructor Summary | |
---|---|
ImageContentLoaderBackend()
|
Method Summary | |
---|---|
Image |
load(Object data,
boolean fragment,
Set<String> errors)
Loads any kind of raw data and tries to accommodate as much as possible to return an instance of InternalType after successful
loading and handling. |
protected abstract Image |
loadFromBytes(byte[] data,
Set<String> errors)
Loads the data from a byte array. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.uwyn.rife.cmf.loader.ContentLoaderBackend |
---|
isBackendPresent |
Constructor Detail |
---|
public ImageContentLoaderBackend()
Method Detail |
---|
protected abstract Image loadFromBytes(byte[] data, Set<String> errors) throws ContentManagerException
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 Image load(Object data, boolean fragment, Set<String> errors) throws ContentManagerException
ContentLoaderBackend
InternalType
after successful
loading and handling.
Should any errors occur, then they will be added as text messages to
the errors
collection.
load
in interface ContentLoaderBackend<Image>
data
- the raw data that has to be loadedfragment
- true
if the raw data is a fragment; or
false
if the raw data is a complete document or file
errors
- a set to which possible error messages will be added
InternalType
; or
null
if the raw data couldn't be loaded
ContentManagerException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |