src/java.base/share/classes/java/io/OutputStream.java
changeset 58054 ee230ad8cfef
parent 48461 6a1c3a5e04f3
child 58242 94bb65cb37d3
equal deleted inserted replaced
58053:1a296c9064dc 58054:ee230ad8cfef
     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      *