equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2017, 2019, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
32 */ |
32 */ |
33 public class DetailsOutputStream extends FileOutputStream { |
33 public class DetailsOutputStream extends FileOutputStream { |
34 |
34 |
35 private PhaseOutputStream phaseOutputStream = new PhaseOutputStream(); |
35 private PhaseOutputStream phaseOutputStream = new PhaseOutputStream(); |
36 |
36 |
37 public DetailsOutputStream() throws FileNotFoundException { |
37 public DetailsOutputStream(String filename) throws FileNotFoundException { |
38 super("details.out", true); |
38 super(filename != null && !filename.isEmpty() ? filename : |
|
39 "details.out", true); |
39 } |
40 } |
40 |
41 |
41 public void transferPhase() throws IOException { |
42 public void transferPhase() throws IOException { |
42 if (phaseOutputStream.isCorePhase()) { |
43 if (phaseOutputStream.isCorePhase()) { |
43 phaseOutputStream.write(HtmlHelper.endHtml()); |
44 phaseOutputStream.write(HtmlHelper.endHtml()); |