From f37bbe9d41d470554ca9b467d0dd0350b4c448d5 Mon Sep 17 00:00:00 2001 From: Arnaud Roques Date: Wed, 19 Apr 2017 21:41:42 +0200 Subject: [PATCH] version 2017.11 --- pom.xml | 2 +- .../net/sourceforge/plantuml/servlet/DiagramResponse.java | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pom.xml b/pom.xml index f617de3..63de1dd 100644 --- a/pom.xml +++ b/pom.xml @@ -157,7 +157,7 @@ net.sourceforge.plantuml plantuml - 2017.09 + 2017.11 javax.servlet diff --git a/src/main/java/net/sourceforge/plantuml/servlet/DiagramResponse.java b/src/main/java/net/sourceforge/plantuml/servlet/DiagramResponse.java index 626c489..6c4e257 100644 --- a/src/main/java/net/sourceforge/plantuml/servlet/DiagramResponse.java +++ b/src/main/java/net/sourceforge/plantuml/servlet/DiagramResponse.java @@ -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());