src/share/classes/com/sun/tools/doclets/formats/html/markup/HtmlWriter.java

changeset 3315
6f0746b6de9f
parent 3258
fd9b6417c521
child 3446
e468915bad3a
     1.1 --- a/src/share/classes/com/sun/tools/doclets/formats/html/markup/HtmlWriter.java	Tue Jul 12 14:52:08 2016 -0700
     1.2 +++ b/src/share/classes/com/sun/tools/doclets/formats/html/markup/HtmlWriter.java	Mon Jul 18 23:53:12 2016 +0300
     1.3 @@ -1,5 +1,5 @@
     1.4  /*
     1.5 - * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
     1.6 + * Copyright (c) 1997, 2016, Oracle and/or its affiliates. All rights reserved.
     1.7   * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     1.8   *
     1.9   * This code is free software; you can redistribute it and/or modify it
    1.10 @@ -164,7 +164,9 @@
    1.11  
    1.12      public final Content descfrmInterfaceLabel;
    1.13  
    1.14 -    private final Writer writer;
    1.15 +    private final DocFile file;
    1.16 +
    1.17 +    private Writer writer;
    1.18  
    1.19      private Content script;
    1.20  
    1.21 @@ -180,7 +182,7 @@
    1.22       */
    1.23      public HtmlWriter(Configuration configuration, DocPath path)
    1.24              throws IOException, UnsupportedEncodingException {
    1.25 -        writer = DocFile.createFileForOutput(configuration, path).openWriter();
    1.26 +        file = DocFile.createFileForOutput(configuration, path);
    1.27          this.configuration = configuration;
    1.28          this.memberDetailsListPrinted = false;
    1.29          profileTableHeader = new String[] {
    1.30 @@ -239,6 +241,7 @@
    1.31      }
    1.32  
    1.33      public void write(Content c) throws IOException {
    1.34 +        writer = file.openWriter();
    1.35          c.write(writer, true);
    1.36      }
    1.37  

mercurial