Class UmlExtractor
- java.lang.Object
-
- net.sourceforge.plantuml.servlet.utility.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 Summary
Constructors Constructor Description UmlExtractor()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
extractMap(String uml)
Get image map from uml.static String
extractMap(String uml, net.sourceforge.plantuml.FileFormat fileFormat)
Get image map from uml.static String
getUmlSource(String source)
Build the complete UML source from the compressed source extracted from the HTTP URI.
-
-
-
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 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
-
-