Class DocumentTypeInfoParser

java.lang.Object
ro.sync.ecss.extensions.api.webapp.doctype.DocumentTypeInfoParser

@API(type=NOT_EXTENDABLE, src=PRIVATE) public class DocumentTypeInfoParser extends Object
Can parse framework files in memory.
Since:
26.1

*********************************
EXPERIMENTAL - Subject to change
********************************

Please note that this API is not marked as final and it can change in one of the next versions of the application. If you have suggestions, comments about it, please let us know.

  • Constructor Details

    • DocumentTypeInfoParser

      public DocumentTypeInfoParser()
  • Method Details

    • parseFrameworkFile

      public static DocumentTypeInfo parseFrameworkFile(File frameworkFile) throws Exception
      Loads a DocumentTypeInfo from a given framework file.
      Parameters:
      frameworkFile - The framework file.
      Returns:
      the DocumentTypeInfo object.
      Throws:
      Exception - If fails to load the DocumentTypeInfo object.
    • parseExfFile

      public static DocumentTypeInfo parseExfFile(File exfFile) throws IOException, SAXException, TransformerConfigurationException, net.sf.saxon.trans.XPathException, Exception
      Loads a DocumentTypeInfo from a given exf file.
      Parameters:
      exfFile - the .exf file.
      Returns:
      the DocumentTypeInfo object.
      Throws:
      IOException - If fails to load the DocumentTypeInfo object.
      SAXException - If fails to load the DocumentTypeInfo object.
      net.sf.saxon.trans.XPathException - If fails to load the DocumentTypeInfo object.
      TransformerConfigurationException - If fails to load the DocumentTypeInfo object.
      Exception - Generic exception.