|
1 | 1 | /*
|
2 |
| - * Copyright (c) 2000, 2022, Oracle and/or its affiliates. All rights reserved. |
| 2 | + * Copyright (c) 2000, 2023, Oracle and/or its affiliates. All rights reserved. |
3 | 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
4 | 4 | *
|
5 | 5 | * This code is free software; you can redistribute it and/or modify it
|
@@ -633,7 +633,7 @@ public final long write(ByteBuffer[] srcs) throws IOException {
|
633 | 633 | * bytes free in its output buffer.
|
634 | 634 | *
|
635 | 635 | * <p> This method does not modify this channel's position. If the given
|
636 |
| - * position is greater than the file's current size then no bytes are |
| 636 | + * position is greater than or equal to the file's current size then no bytes are |
637 | 637 | * transferred. If the target channel has a position then bytes are
|
638 | 638 | * written starting at that position and then the position is incremented
|
639 | 639 | * by the number of bytes written.
|
@@ -761,7 +761,7 @@ public abstract long transferFrom(ReadableByteChannel src,
|
761 | 761 | * #read(ByteBuffer)} method, except that bytes are read starting at the
|
762 | 762 | * given file position rather than at the channel's current position. This
|
763 | 763 | * method does not modify this channel's position. If the given position
|
764 |
| - * is greater than the file's current size then no bytes are read. </p> |
| 764 | + * is greater than or equal to the file's current size then no bytes are read. </p> |
765 | 765 | *
|
766 | 766 | * @param dst
|
767 | 767 | * The buffer into which bytes are to be transferred
|
@@ -806,7 +806,7 @@ public abstract long transferFrom(ReadableByteChannel src,
|
806 | 806 | * #write(ByteBuffer)} method, except that bytes are written starting at
|
807 | 807 | * the given file position rather than at the channel's current position.
|
808 | 808 | * This method does not modify this channel's position. If the given
|
809 |
| - * position is greater than the file's current size then the file will be |
| 809 | + * position is greater than or equal to the file's current size then the file will be |
810 | 810 | * grown to accommodate the new bytes; the values of any bytes between the
|
811 | 811 | * previous end-of-file and the newly-written bytes are unspecified. </p>
|
812 | 812 | *
|
|
0 commit comments