|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.uwyn.rife.cmf.loader.ContentLoader<InternalType>
public abstract class ContentLoader<InternalType>
This is an abstract class that needs to be extended by all the classes that are able to load raw data and converted it to a common internal type.
Each content loader has a collection of back-ends that are able to
interpret the raw data. All that should be done by an extending class, is
implement the getBackends method and return a
List of supported loader back-ends.
ContentLoaderBackend| Constructor Summary | |
|---|---|
ContentLoader()
|
|
| Method Summary | |
|---|---|
abstract List<ContentLoaderBackend<InternalType>> |
getBackends()
Returns a list of support content loading back-ends. |
InternalType |
load(Object data,
boolean fragment,
Set<String> errors)
Loads raw data and returns the internal type after successful loading and handling. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ContentLoader()
| Method Detail |
|---|
public InternalType load(Object data,
boolean fragment,
Set<String> errors)
throws ContentManagerException
Should any errors occur in the back-ends, then they will be added as
text messages to the errors collection.
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
java.awt.Image
for loaders that handle images; or
null if the raw data couldn't be loaded
ContentManagerExceptionpublic abstract List<ContentLoaderBackend<InternalType>> getBackends()
This method should be implemented by all concrete content loaders.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||