< prev index next >

src/java.base/share/classes/java/nio/channels/ScatteringByteChannel.java

Print this page

        

@@ -1,7 +1,7 @@
 /*
- * Copyright (c) 2000, 2006, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
  * under the terms of the GNU General Public License version 2 only, as
  * published by the Free Software Foundation.  Oracle designates this

@@ -105,10 +105,13 @@
      *          If this channel was not opened for reading
      *
      * @throws  ClosedChannelException
      *          If this channel is closed
      *
+     * @throws  IllegalArgumentException
+     *          If any of the buffers is read-only
+     *
      * @throws  AsynchronousCloseException
      *          If another thread closes this channel
      *          while the read operation is in progress
      *
      * @throws  ClosedByInterruptException

@@ -142,10 +145,13 @@
      *          If this channel was not opened for reading
      *
      * @throws  ClosedChannelException
      *          If this channel is closed
      *
+     * @throws  IllegalArgumentException
+     *          If any of the buffers is read-only
+     *
      * @throws  AsynchronousCloseException
      *          If another thread closes this channel
      *          while the read operation is in progress
      *
      * @throws  ClosedByInterruptException
< prev index next >