src/java.base/share/classes/java/nio/channels/FileChannel.java
changeset 59227 46084917fde7
parent 54532 e9c62d960d64
equal deleted inserted replaced
59226:a0f39cc47387 59227:46084917fde7
     1 /*
     1 /*
     2  * Copyright (c) 2000, 2018, 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
   717      * @return  The number of bytes read, possibly zero, or {@code -1} if the
   717      * @return  The number of bytes read, possibly zero, or {@code -1} if the
   718      *          given position is greater than or equal to the file's current
   718      *          given position is greater than or equal to the file's current
   719      *          size
   719      *          size
   720      *
   720      *
   721      * @throws  IllegalArgumentException
   721      * @throws  IllegalArgumentException
   722      *          If the position is negative
   722      *          If the position is negative or the buffer is read-only
   723      *
   723      *
   724      * @throws  NonReadableChannelException
   724      * @throws  NonReadableChannelException
   725      *          If this channel was not opened for reading
   725      *          If this channel was not opened for reading
   726      *
   726      *
   727      * @throws  ClosedChannelException
   727      * @throws  ClosedChannelException