Class UmlExtractor


  • public abstract class UmlExtractor
    extends Object
    Utility class to extract the UML source from the compressed UML source contained in the end part of the requested URI.
    • Constructor Detail

      • UmlExtractor

        public UmlExtractor()
    • Method Detail

      • getUmlSource

        public static String getUmlSource​(String source)
        Build the complete UML source from the compressed source extracted from the HTTP URI.
        Parameters:
        source - the last part of the URI containing the compressed UML
        Returns:
        the textual UML source
      • extractMap

        public static String extractMap​(String uml)
                                 throws IOException
        Get image map from uml.
        Parameters:
        uml - textual diagram source
        Returns:
        image map of the diagram in HTML format if the image has some position information; otherwise `null`
        Throws:
        IOException - if an input or output exception occurred
      • extractMap

        public static String extractMap​(String uml,
                                        net.sourceforge.plantuml.FileFormat fileFormat)
                                 throws IOException
        Get image map from uml.
        Parameters:
        uml - textual diagram source
        fileFormat - underlying file format of uml image
        Returns:
        image map of the diagram in HTML format if the image has some position information; otherwise `null`
        Throws:
        IOException - if an input or output exception occurred