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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates 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:XhtmlContentLoaderBackendLoads the data from a string- Specified by:
loadFromStringin classXhtmlContentLoaderBackend- Parameters:
data- the raw data that has to be loadedfragment-trueif the raw data is a fragment; orfalseif the raw data is a complete document or fileerrors- a set to which possible error messages will be added- Returns:
- an instance of the
LoadedContentas XHTML as aString; ornullif the raw data couldn't be loaded - Throws:
ContentManagerException
-
isBackendPresent
public boolean isBackendPresent()Description copied from interface:ContentLoaderBackendIndicates 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:
trueif the back-end is present; orfalseif this is not the case
-