|
1 | 1 | /* |
2 | | - * Copyright (c) 2000, 2023, Oracle and/or its affiliates. All rights reserved. |
| 2 | + * Copyright (c) 2000, 2025, 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 |
@@ -76,11 +76,14 @@ public interface GatheringByteChannel |
76 | 76 | * the final position of each updated buffer, except the last updated |
77 | 77 | * buffer, is guaranteed to be equal to that buffer's limit. |
78 | 78 | * |
79 | | - * <p> Unless otherwise specified, a write operation will return only after |
| 79 | + * <p> For many types of channels, a write operation will return only after |
80 | 80 | * writing all of the <i>r</i> requested bytes. Some types of channels, |
81 | 81 | * depending upon their state, may write only some of the bytes or possibly |
82 | | - * none at all. A socket channel in non-blocking mode, for example, cannot |
83 | | - * write any more bytes than are free in the socket's output buffer. |
| 82 | + * none at all. A socket channel in {@linkplain |
| 83 | + * SelectableChannel#isBlocking non-blocking mode}, for example, cannot |
| 84 | + * write any more bytes than are free in the socket's output buffer. The |
| 85 | + * write method may need to be invoked more than once to ensure that all |
| 86 | + * {@linkplain ByteBuffer#hasRemaining remaining} bytes are written. |
84 | 87 | * |
85 | 88 | * <p> This method may be invoked at any time. If another thread has |
86 | 89 | * already initiated a write operation upon this channel, however, then an |
|
0 commit comments