@@ -380,6 +380,7 @@ public static FileChannel open(Path path, OpenOption... options)
380
380
* @throws ClosedChannelException {@inheritDoc}
381
381
* @throws AsynchronousCloseException {@inheritDoc}
382
382
* @throws ClosedByInterruptException {@inheritDoc}
383
+ * @throws NonReadableChannelException {@inheritDoc}
383
384
*/
384
385
public abstract int read (ByteBuffer dst ) throws IOException ;
385
386
@@ -395,6 +396,7 @@ public static FileChannel open(Path path, OpenOption... options)
395
396
* @throws ClosedChannelException {@inheritDoc}
396
397
* @throws AsynchronousCloseException {@inheritDoc}
397
398
* @throws ClosedByInterruptException {@inheritDoc}
399
+ * @throws NonReadableChannelException {@inheritDoc}
398
400
*/
399
401
public abstract long read (ByteBuffer [] dsts , int offset , int length )
400
402
throws IOException ;
@@ -410,6 +412,7 @@ public abstract long read(ByteBuffer[] dsts, int offset, int length)
410
412
* @throws ClosedChannelException {@inheritDoc}
411
413
* @throws AsynchronousCloseException {@inheritDoc}
412
414
* @throws ClosedByInterruptException {@inheritDoc}
415
+ * @throws NonReadableChannelException {@inheritDoc}
413
416
*/
414
417
public final long read (ByteBuffer [] dsts ) throws IOException {
415
418
return read (dsts , 0 , dsts .length );
@@ -426,12 +429,10 @@ public final long read(ByteBuffer[] dsts) throws IOException {
426
429
* behaves exactly as specified by the {@link WritableByteChannel}
427
430
* interface. </p>
428
431
*
429
- * @throws NonWritableChannelException
430
- * If this channel was not opened for writing
431
- *
432
432
* @throws ClosedChannelException {@inheritDoc}
433
433
* @throws AsynchronousCloseException {@inheritDoc}
434
434
* @throws ClosedByInterruptException {@inheritDoc}
435
+ * @throws NonWritableChannelException {@inheritDoc}
435
436
*/
436
437
public abstract int write (ByteBuffer src ) throws IOException ;
437
438
@@ -447,12 +448,10 @@ public final long read(ByteBuffer[] dsts) throws IOException {
447
448
* behaves exactly as specified in the {@link GatheringByteChannel}
448
449
* interface. </p>
449
450
*
450
- * @throws NonWritableChannelException
451
- * If this channel was not opened for writing
452
- *
453
451
* @throws ClosedChannelException {@inheritDoc}
454
452
* @throws AsynchronousCloseException {@inheritDoc}
455
453
* @throws ClosedByInterruptException {@inheritDoc}
454
+ * @throws NonWritableChannelException {@inheritDoc}
456
455
*/
457
456
public abstract long write (ByteBuffer [] srcs , int offset , int length )
458
457
throws IOException ;
@@ -468,12 +467,10 @@ public abstract long write(ByteBuffer[] srcs, int offset, int length)
468
467
* behaves exactly as specified in the {@link GatheringByteChannel}
469
468
* interface. </p>
470
469
*
471
- * @throws NonWritableChannelException
472
- * If this channel was not opened for writing
473
- *
474
470
* @throws ClosedChannelException {@inheritDoc}
475
471
* @throws AsynchronousCloseException {@inheritDoc}
476
472
* @throws ClosedByInterruptException {@inheritDoc}
473
+ * @throws NonWritableChannelException {@inheritDoc}
477
474
*/
478
475
public final long write (ByteBuffer [] srcs ) throws IOException {
479
476
return write (srcs , 0 , srcs .length );
0 commit comments