Package rife.cmf.loader.xhtml
Class SAXLoader
java.lang.Object
rife.cmf.loader.XhtmlContentLoaderBackend
rife.cmf.loader.xhtml.SAXLoader
- All Implemented Interfaces:
ContentLoaderBackend<String>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Indicates whether the back-end is present.loadFromString
(String data, boolean fragment, Set<String> errors) Loads the data from a stringMethods inherited from class rife.cmf.loader.XhtmlContentLoaderBackend
load
-
Constructor Details
-
SAXLoader
public SAXLoader()
-
-
Method Details
-
loadFromString
public LoadedContent<String> loadFromString(String data, boolean fragment, Set<String> errors) throws ContentManagerException Description copied from class:XhtmlContentLoaderBackend
Loads the data from a string- Specified by:
loadFromString
in classXhtmlContentLoaderBackend
- Parameters:
data
- the raw data that has to be loadedfragment
-true
if the raw data is a fragment; orfalse
if the raw data is a complete document or fileerrors
- a set to which possible error messages will be added- Returns:
- an instance of the
LoadedContent
as XHTML as aString
; ornull
if the raw data couldn't be loaded - Throws:
ContentManagerException
-
isBackendPresent
public boolean isBackendPresent()Description copied from interface:ContentLoaderBackend
Indicates whether the back-end is present.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.
- Returns:
true
if the back-end is present; orfalse
if this is not the case
-