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_JDK8252739This class is a workaround for JDK bug JDK-8252739.
-
-
Field Summary
Fields Modifier and Type Field Description static booleanIS_BUGGY_JDK
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static BugfixDeflater_JDK8252739createBugfix(java.util.zip.Deflater deflater)Creates a bugfix forDeflaterinstances, which works around JDK-8252739.static booleandetectBuggyJDK()voidsetDictionary(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 forDeflaterinstances, 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
static boolean detectBuggyJDK()
-
-