Interface BugfixDeflater_JDK8252739
-
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface interface BugfixDeflater_JDK8252739
This class is a workaround for JDK bug JDK-8252739.
-
-
Field Summary
Fields Modifier and Type Field Description static boolean
IS_BUGGY_JDK
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static BugfixDeflater_JDK8252739
createBugfix(java.util.zip.Deflater deflater)
Creates a bugfix forDeflater
instances, which works around JDK-8252739.private static boolean
detectBuggyJDK()
void
setDictionary(byte[] dictBytes, int off, int len)
Call this method as a workaround
-
-
-
Method Detail
-
createBugfix
static BugfixDeflater_JDK8252739 createBugfix(java.util.zip.Deflater deflater)
Creates a bugfix forDeflater
instances, which works around JDK-8252739.Use this whenever you intend to call
Deflater.setDictionary(byte[], int, int)
on aDeflater
.
-
setDictionary
void setDictionary(byte[] dictBytes, int off, int len)
Call this method as a workaround
-
detectBuggyJDK
private static boolean detectBuggyJDK()
-
-