mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8286783: Expand use of @inheritDoc in InputStream and OutputStream subclasses
Reviewed-by: alanb
This commit is contained in:
parent
ea713c37fb
commit
8e602b862d
13 changed files with 156 additions and 141 deletions
|
@ -314,6 +314,7 @@ public class FileOutputStream extends OutputStream
|
|||
* @param b the byte to be written.
|
||||
* @throws IOException if an I/O error occurs.
|
||||
*/
|
||||
@Override
|
||||
public void write(int b) throws IOException {
|
||||
boolean append = fdAccess.getAppend(fd);
|
||||
long comp = Blocker.begin();
|
||||
|
@ -340,9 +341,10 @@ public class FileOutputStream extends OutputStream
|
|||
* Writes {@code b.length} bytes from the specified byte array
|
||||
* to this file output stream.
|
||||
*
|
||||
* @param b the data.
|
||||
* @throws IOException if an I/O error occurs.
|
||||
* @param b {@inheritDoc}
|
||||
* @throws IOException {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public void write(byte[] b) throws IOException {
|
||||
boolean append = fdAccess.getAppend(fd);
|
||||
long comp = Blocker.begin();
|
||||
|
@ -357,11 +359,12 @@ public class FileOutputStream extends OutputStream
|
|||
* Writes {@code len} bytes from the specified byte array
|
||||
* starting at offset {@code off} to this file output stream.
|
||||
*
|
||||
* @param b the data.
|
||||
* @param off the start offset in the data.
|
||||
* @param len the number of bytes to write.
|
||||
* @param b {@inheritDoc}
|
||||
* @param off {@inheritDoc}
|
||||
* @param len {@inheritDoc}
|
||||
* @throws IOException if an I/O error occurs.
|
||||
*/
|
||||
@Override
|
||||
public void write(byte[] b, int off, int len) throws IOException {
|
||||
boolean append = fdAccess.getAppend(fd);
|
||||
long comp = Blocker.begin();
|
||||
|
@ -392,6 +395,7 @@ public class FileOutputStream extends OutputStream
|
|||
*
|
||||
* @revised 1.4
|
||||
*/
|
||||
@Override
|
||||
public void close() throws IOException {
|
||||
if (closed) {
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue