mirror of
https://github.com/openjdk/jdk.git
synced 2026-02-14 04:15:04 +00:00
8020687: Deflater.setLevel does not work as expected
To clarify the api to match the existing implementation behavior Reviewed-by: alanb
This commit is contained in:
parent
344c38fc80
commit
763eb8d2e3
@ -261,6 +261,12 @@ class Deflater {
|
||||
|
||||
/**
|
||||
* Sets the compression strategy to the specified value.
|
||||
*
|
||||
* <p> If the compression strategy is changed, the next invocation
|
||||
* of {@code deflate} will compress the input available so far with
|
||||
* the old strategy (and may be flushed); the new strategy will take
|
||||
* effect only after that invocation.
|
||||
*
|
||||
* @param strategy the new compression strategy
|
||||
* @exception IllegalArgumentException if the compression strategy is
|
||||
* invalid
|
||||
@ -283,7 +289,13 @@ class Deflater {
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the current compression level to the specified value.
|
||||
* Sets the compression level to the specified value.
|
||||
*
|
||||
* <p> If the compression level is changed, the next invocation
|
||||
* of {@code deflate} will compress the input available so far
|
||||
* with the old level (and may be flushed); the new level will
|
||||
* take effect only after that invocation.
|
||||
*
|
||||
* @param level the new compression level (0-9)
|
||||
* @exception IllegalArgumentException if the compression level is invalid
|
||||
*/
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user