src/java.base/share/classes/java/nio/channels/ScatteringByteChannel.java
changeset 59227 46084917fde7
parent 47216 71c04702a3d5
equal deleted inserted replaced
59226:a0f39cc47387 59227:46084917fde7
     1 /*
     1 /*
     2  * Copyright (c) 2000, 2006, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2000, 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
    99      *
    99      *
   100      * @throws  IndexOutOfBoundsException
   100      * @throws  IndexOutOfBoundsException
   101      *          If the preconditions on the {@code offset} and {@code length}
   101      *          If the preconditions on the {@code offset} and {@code length}
   102      *          parameters do not hold
   102      *          parameters do not hold
   103      *
   103      *
       
   104      * @throws  IllegalArgumentException
       
   105      *          If any of the buffers is read-only
       
   106      *
   104      * @throws  NonReadableChannelException
   107      * @throws  NonReadableChannelException
   105      *          If this channel was not opened for reading
   108      *          If this channel was not opened for reading
   106      *
   109      *
   107      * @throws  ClosedChannelException
   110      * @throws  ClosedChannelException
   108      *          If this channel is closed
   111      *          If this channel is closed
   136      *         The buffers into which bytes are to be transferred
   139      *         The buffers into which bytes are to be transferred
   137      *
   140      *
   138      * @return The number of bytes read, possibly zero,
   141      * @return The number of bytes read, possibly zero,
   139      *         or {@code -1} if the channel has reached end-of-stream
   142      *         or {@code -1} if the channel has reached end-of-stream
   140      *
   143      *
       
   144      * @throws  IllegalArgumentException
       
   145      *          If any of the buffers is read-only
       
   146      *
   141      * @throws  NonReadableChannelException
   147      * @throws  NonReadableChannelException
   142      *          If this channel was not opened for reading
   148      *          If this channel was not opened for reading
   143      *
   149      *
   144      * @throws  ClosedChannelException
   150      * @throws  ClosedChannelException
   145      *          If this channel is closed
   151      *          If this channel is closed