mirror of
https://github.com/octoleo/plantuml-server.git
synced 2024-11-11 15:20:58 +00:00
version 2017.11
This commit is contained in:
parent
67e9aeb992
commit
f37bbe9d41
2
pom.xml
2
pom.xml
@ -157,7 +157,7 @@
|
||||
<dependency>
|
||||
<groupId>net.sourceforge.plantuml</groupId>
|
||||
<artifactId>plantuml</artifactId>
|
||||
<version>2017.09</version>
|
||||
<version>2017.11</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>javax.servlet</groupId>
|
||||
|
@ -83,7 +83,7 @@ class DiagramResponse {
|
||||
if (StringUtils.isDiagramCacheable(uml)) {
|
||||
addHeaderForCache(blockUml);
|
||||
}
|
||||
reader.generateImage(response.getOutputStream(), new FileFormatOption(format, false));
|
||||
reader.outputImage(response.getOutputStream(), new FileFormatOption(format, false));
|
||||
}
|
||||
|
||||
private boolean notModified(BlockUml blockUml) {
|
||||
@ -107,7 +107,7 @@ class DiagramResponse {
|
||||
if (StringUtils.isDiagramCacheable(uml)) {
|
||||
addHeaderForCache(blockUml);
|
||||
}
|
||||
String map = reader.generateImage(new NullOutputStream(),
|
||||
String map = reader.outputImage(new NullOutputStream(),
|
||||
new FileFormatOption(FileFormat.PNG, false)).getDescription();
|
||||
String[] mapLines = map.split("[\\r\\n]");
|
||||
PrintWriter httpOut = response.getWriter();
|
||||
@ -119,7 +119,7 @@ class DiagramResponse {
|
||||
void sendCheck(String uml) throws IOException {
|
||||
response.setContentType(getContentType());
|
||||
SourceStringReader reader = new SourceStringReader(uml);
|
||||
DiagramDescription desc = reader.generateImage(
|
||||
DiagramDescription desc = reader.outputImage(
|
||||
new NullOutputStream(), new FileFormatOption(FileFormat.PNG, false));
|
||||
PrintWriter httpOut = response.getWriter();
|
||||
httpOut.print(desc.getDescription());
|
||||
|
Loading…
Reference in New Issue
Block a user