version 2017.11

This commit is contained in:
Arnaud Roques 2017-04-19 21:41:42 +02:00
parent 67e9aeb992
commit f37bbe9d41
2 changed files with 4 additions and 4 deletions

View File

@ -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>

View File

@ -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());