equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1994, 2018, 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 |
45 * @see java.io.OutputStream#write(int) |
45 * @see java.io.OutputStream#write(int) |
46 * @since 1.0 |
46 * @since 1.0 |
47 */ |
47 */ |
48 public abstract class OutputStream implements Closeable, Flushable { |
48 public abstract class OutputStream implements Closeable, Flushable { |
49 /** |
49 /** |
|
50 * Constructor for subclasses to call. |
|
51 */ |
|
52 public OutputStream() {} |
|
53 |
|
54 /** |
50 * Returns a new {@code OutputStream} which discards all bytes. The |
55 * Returns a new {@code OutputStream} which discards all bytes. The |
51 * returned stream is initially open. The stream is closed by calling |
56 * returned stream is initially open. The stream is closed by calling |
52 * the {@code close()} method. Subsequent calls to {@code close()} have |
57 * the {@code close()} method. Subsequent calls to {@code close()} have |
53 * no effect. |
58 * no effect. |
54 * |
59 * |