You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Get the compression level used for the compressor.
63
+
* @return the compression level (0-9)
64
+
*/
65
+
publicintgetDeflaterLevel() {
66
+
returnthis.deflaterLevel;
69
67
}
70
68
71
-
publicvoidsetDeflater(Deflaterdeflater) {
72
-
this.deflater = deflater;
69
+
/**
70
+
* Set the compression level used for the compressor.
71
+
* @param level the compression level (0-9)
72
+
*/
73
+
publicvoidsetDeflaterLevel(intlevel) {
74
+
this.deflater.setLevel(level);
75
+
this.deflaterLevel = level;
76
+
//If the compression level is changed, the next invocation of 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.
77
+
this.deflater.deflate(newbyte[0]);
73
78
}
74
79
75
80
/**
@@ -333,6 +338,7 @@ public IExtension copyInstance() {
0 commit comments