()
| 193 | } |
| 194 | |
| 195 | @Override |
| 196 | public boolean isAvailable() { |
| 197 | if (direct == null) { |
| 198 | // see nowrap option in new Inflater(boolean) which disables zlib headers |
| 199 | try { |
| 200 | ensureShim(); |
| 201 | direct = (decompressShim != null); |
| 202 | } catch (UnsatisfiedLinkError ule) { |
| 203 | direct = false; |
| 204 | } |
| 205 | } |
| 206 | return direct; |
| 207 | } |
| 208 | |
| 209 | private void ensureShim() { |
| 210 | if (decompressShim == null) { |
nothing calls this directly
no test coverage detected