| Modifier and Type | Field and Description |
|---|---|
| private final int | |
| private final boolean |
| Access | Constructor and Description |
|---|---|
| public | DeflaterPool(int
maximum number of Deflaters which can be contained in the pool capacity, int the default compression level for new Deflater objects compressionLevel, boolean if true then use GZIP compatible compression for all new Deflater objects nowrap)Create a Pool of |
| Modifier and Type | Method and Description |
|---|---|
| protected void | |
| public static DeflaterPool | |
| protected Deflater | |
| protected void | reset(Deflater deflater)
Implements abstract org.
|
| compressionLevel | back to summary |
|---|---|
| private final int compressionLevel | |
| nowrap | back to summary |
|---|---|
| private final boolean nowrap | |
| DeflaterPool | back to summary |
|---|---|
| public DeflaterPool(int capacity, int compressionLevel, boolean nowrap) Create a Pool of If given a capacity equal to zero the Deflaters will not be pooled and will be created on acquire and ended on release. If given a negative capacity equal to zero there will be no size restrictions on the DeflaterPool
| |
| end | back to summary |
|---|---|
| protected void end(Deflater deflater) Implements abstract org.
| |
| ensurePool | back to summary |
|---|---|
| public static DeflaterPool ensurePool(Container container) | |
| newPooled | back to summary |
|---|---|
| protected Deflater newPooled() Implements abstract org.
| |
| reset | back to summary |
|---|---|
| protected void reset(Deflater deflater) Implements abstract org.
| |