equal
deleted
inserted
replaced
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 |