com.uwyn.rife.cmf.loader.xhtml
Class Jdk14Loader

java.lang.Object
  extended by com.uwyn.rife.cmf.loader.XhtmlContentLoaderBackend
      extended by com.uwyn.rife.cmf.loader.xhtml.Jdk14Loader
All Implemented Interfaces:
ContentLoaderBackend<String>

public class Jdk14Loader
extends XhtmlContentLoaderBackend


Constructor Summary
Jdk14Loader()
           
 
Method Summary
 boolean isBackendPresent()
          Indicates whether the back-end is present.
 String loadFromString(String data, boolean fragment, Set<String> errors)
          Loads the data from a string
 
Methods inherited from class com.uwyn.rife.cmf.loader.XhtmlContentLoaderBackend
load
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Jdk14Loader

public Jdk14Loader()
Method Detail

loadFromString

public 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 class XhtmlContentLoaderBackend
Parameters:
data - the raw data that has to be loaded
fragment - 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
Returns:
an instance of the xhtml as a String; or

null 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; or

false if this is not the case



Copyright © 2001-2007 Uwyn sprl/bvba. All Rights Reserved.