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
|
@ -689,6 +689,7 @@ public class ObjectOutputStream
|
|||
* @param val the byte to be written to the stream
|
||||
* @throws IOException If an I/O error has occurred.
|
||||
*/
|
||||
@Override
|
||||
public void write(int val) throws IOException {
|
||||
bout.write(val);
|
||||
}
|
||||
|
@ -700,6 +701,7 @@ public class ObjectOutputStream
|
|||
* @param buf the data to be written
|
||||
* @throws IOException If an I/O error has occurred.
|
||||
*/
|
||||
@Override
|
||||
public void write(byte[] buf) throws IOException {
|
||||
bout.write(buf, 0, buf.length, false);
|
||||
}
|
||||
|
@ -710,8 +712,9 @@ public class ObjectOutputStream
|
|||
* @param buf the data to be written
|
||||
* @param off the start offset in the data
|
||||
* @param len the number of bytes that are written
|
||||
* @throws IOException If an I/O error has occurred.
|
||||
* @throws IOException {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public void write(byte[] buf, int off, int len) throws IOException {
|
||||
if (buf == null) {
|
||||
throw new NullPointerException();
|
||||
|
@ -724,8 +727,9 @@ public class ObjectOutputStream
|
|||
* Flushes the stream. This will write any buffered output bytes and flush
|
||||
* through to the underlying stream.
|
||||
*
|
||||
* @throws IOException If an I/O error has occurred.
|
||||
* @throws IOException {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public void flush() throws IOException {
|
||||
bout.flush();
|
||||
}
|
||||
|
@ -747,6 +751,7 @@ public class ObjectOutputStream
|
|||
*
|
||||
* @throws IOException If an I/O error has occurred.
|
||||
*/
|
||||
@Override
|
||||
public void close() throws IOException {
|
||||
flush();
|
||||
clear();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue