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 |
57 * |
57 * |
58 * @param in the underlying input stream, or <code>null</code> if |
58 * @param in the underlying input stream, or <code>null</code> if |
59 * this instance is to be created without an underlying stream. |
59 * this instance is to be created without an underlying stream. |
60 */ |
60 */ |
61 protected FilterInputStream(InputStream in) { |
61 protected FilterInputStream(InputStream in) { |
|
62 if (in == null) { |
|
63 throw new NullPointerException(); |
|
64 } |
62 this.in = in; |
65 this.in = in; |
63 } |
66 } |
64 |
67 |
65 /** |
68 /** |
66 * Reads the next byte of data from this input stream. The value |
69 * Reads the next byte of data from this input stream. The value |