org.apache.ant.compress.taskdefs

## Class GZip

- java.lang.Object
- - org.apache.tools.ant.ProjectComponent
  - - org.apache.tools.ant.Task
    - - org.apache.ant.compress.taskdefs.PackBase
      - - org.apache.ant.compress.taskdefs.GZip

- All Implemented Interfaces:
    java.lang.Cloneable

      public final class GZip
      extends PackBase

  Compresses using gzip.

- - ### Nested Class Summary

    - ### Nested classes/interfaces inherited from class org.apache.ant.compress.taskdefs.PackBase

      `PackBase.ResourceWrapper`

  - ### Field Summary

    - ### Fields inherited from class org.apache.tools.ant.Task

      `target, taskName, taskType`

    - ### Fields inherited from class org.apache.tools.ant.ProjectComponent

      `description, location, project`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `GZip()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `setLevel(int level)` Set the compression level to use.

    - ### Methods inherited from class org.apache.ant.compress.taskdefs.PackBase

      `add, add, addConfigured, addConfiguredDest, execute, getSrc, setDest, setDestfile, setFactory, setSrc, setSrcfile`

    - ### Methods inherited from class org.apache.tools.ant.Task

      `bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType`

    - ### Methods inherited from class org.apache.tools.ant.ProjectComponent

      `clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject`

    - ### Methods inherited from class java.lang.Object

      `equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### GZip

          public GZip()

  - ### Method Detail

    - #### setLevel

          public void setLevel(int level)

      Set the compression level to use. Default is Deflater.DEFAULT_COMPRESSION.
      Parameters:
        `level` - compression level.
      Since:
        1.5