equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1994, 2017, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1994, 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. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
65 * the field {@code this.out} for later use, or |
65 * the field {@code this.out} for later use, or |
66 * <code>null</code> if this instance is to be |
66 * <code>null</code> if this instance is to be |
67 * created without an underlying stream. |
67 * created without an underlying stream. |
68 */ |
68 */ |
69 public FilterOutputStream(OutputStream out) { |
69 public FilterOutputStream(OutputStream out) { |
|
70 if (out == null) { |
|
71 throw new NullPointerException(); |
|
72 } |
|
73 |
70 this.out = out; |
74 this.out = out; |
71 } |
75 } |
72 |
76 |
73 /** |
77 /** |
74 * Writes the specified <code>byte</code> to this output stream. |
78 * Writes the specified <code>byte</code> to this output stream. |