File tree 1 file changed +5
-3
lines changed
src/java.base/share/classes/java/net
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -277,9 +277,11 @@ public void setFixedLengthStreamingMode(long contentLength) {
277
277
* <p>
278
278
* This method must be called before the URLConnection is connected.
279
279
*
280
- * @param chunklen The number of bytes to write in each chunk.
281
- * If chunklen is less than or equal to zero, a default
282
- * value will be used.
280
+ * @param chunklen The number of bytes to be written in each chunk,
281
+ * including a chunk size header as a hexadecimal string
282
+ * (minimum of 1 byte), two CRLF's (4 bytes) and a minimum
283
+ * payload length of 1 byte. If chunklen is less than or equal
284
+ * to 5, a higher default value will be used.
283
285
*
284
286
* @throws IllegalStateException if URLConnection is already connected
285
287
* or if a different streaming mode is already enabled.
You can’t perform that action at this time.
0 commit comments