< prev index next >

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

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 2000, 2018, 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 --- 1,7 ---- /* ! * 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
*** 717,727 **** * @return The number of bytes read, possibly zero, or {@code -1} if the * given position is greater than or equal to the file's current * size * * @throws IllegalArgumentException ! * If the position is negative * * @throws NonReadableChannelException * If this channel was not opened for reading * * @throws ClosedChannelException --- 717,727 ---- * @return The number of bytes read, possibly zero, or {@code -1} if the * given position is greater than or equal to the file's current * size * * @throws IllegalArgumentException ! * If the position is negative or the buffer is read-only * * @throws NonReadableChannelException * If this channel was not opened for reading * * @throws ClosedChannelException
< prev index next >