Author: bodewig
Date: Thu Aug 27 02:59:15 2009
New Revision: 808262
URL: http://svn.apache.org/viewvc?rev=808262&view=rev
Log:
provide access to compression method
Modified:
ant/core/trunk/src/main/org/apache/tools/ant/types/resources/ZipResource.java
Modified:
ant/core/trunk/src/main/org/apache/tools/ant/types/resources/ZipResource.java
URL:
http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/types/resources/ZipResource.java?rev=808262&r1=808261&r2=808262&view=diff
==============================================================================
---
ant/core/trunk/src/main/org/apache/tools/ant/types/resources/ZipResource.java
(original)
+++
ant/core/trunk/src/main/org/apache/tools/ant/types/resources/ZipResource.java
Thu Aug 27 02:59:15 2009
@@ -41,6 +41,7 @@
private String encoding;
private ZipExtraField[] extras;
+ private int method;
/**
* Default constructor.
@@ -184,6 +185,14 @@
}
/**
+ * The compression method that has been used.
+ * @since Ant 1.8.0
+ */
+ public int getMethod() {
+ return method;
+ }
+
+ /**
* fetches information from the named entry inside the archive.
*/
protected void fetchEntry() {
@@ -211,6 +220,7 @@
setSize(e.getSize());
setMode(e.getUnixMode());
extras = e.getExtraFields();
+ method = e.getMethod();
}
}