Class DocumentAnalyzer


  • public final class DocumentAnalyzer
    extends java.lang.Object
    Contains methods used to analyze a document or it's structure.
    • Method Detail

      • externalGetStructureInfos

        public static DocumentAnalyzer.StructureInfos externalGetStructureInfos​(java.util.List<DocumentArchiveMetaInfo.ElementArchiveMetaInfo> structure,
                                                                                int wantedElement,
                                                                                javax.servlet.http.HttpSession session)
        Gets information about a document's structure. Same as getStructureInfos, but can be used by servlets or JSPs. This method ignores the supported formats of the viewer.
        Parameters:
        structure - the elements of the structure
        wantedElement - A special element of the document structure.
        session - the current session
        Returns:
        the structure information
      • externalGetStructureInfos

        public static DocumentAnalyzer.StructureInfos externalGetStructureInfos​(java.util.List<DocumentArchiveMetaInfo.ElementArchiveMetaInfo> structure,
                                                                                int wantedElement,
                                                                                java.util.Set<java.lang.String> supportedFormats,
                                                                                javax.servlet.http.HttpSession session)
        Gets information about a document's structure. Same as getStructureInfos, but can be used by servlets or JSPs.
        Parameters:
        structure - the elements of the structure
        wantedElement - A special element of the document structure.
        supportedFormats - set of supported formats by filename extension (in upper-case)
        session - the current session
        Returns:
        the structure information
      • getStructureInfos

        public static DocumentAnalyzer.StructureInfos getStructureInfos​(java.util.List<DocumentArchiveMetaInfo.ElementArchiveMetaInfo> structure,
                                                                        int wantedElement)
        Gets information about a document's structure. This method ignores the supported formats of the viewer.
        Parameters:
        structure - the elements of the structure
        wantedElement - A special element of the document structure.
        Returns:
        the structure information
      • getStructureInfos

        public static DocumentAnalyzer.StructureInfos getStructureInfos​(java.util.List<DocumentArchiveMetaInfo.ElementArchiveMetaInfo> structure,
                                                                        int wantedElement,
                                                                        java.util.Set<java.lang.String> supportedFormats)
        Gets information about a document's structure.
        Parameters:
        structure - the elements of the structure
        wantedElement - A special element of the document structure.
        supportedFormats - set of supported formats by filename extension (in upper-case)
        Returns:
        the structure information