Class SAXLoader

All Implemented Interfaces:
ContentLoaderBackend<String>

public class SAXLoader extends XhtmlContentLoaderBackend
  • 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 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 LoadedContent as 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