Class UmlExtractor
java.lang.Object
net.sourceforge.plantuml.servlet.utility.UmlExtractor
Utility class to extract the UML source from the compressed UML source contained in the end part
of the requested URI.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringextractMap(String uml) Get image map from uml.static StringextractMap(String uml, net.sourceforge.plantuml.FileFormat fileFormat) Get image map from uml.static StringgetUmlSource(String source) Build the complete UML source from the compressed source extracted from the HTTP URI.
-
Constructor Details
-
UmlExtractor
public UmlExtractor()
-
-
Method Details
-
getUmlSource
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
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 sourcefileFormat- 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
-