more javadocs and @since tags, thanks Clirr
diff --git a/src/main/java/org/apache/commons/compress/archivers/tar/TarConstants.java b/src/main/java/org/apache/commons/compress/archivers/tar/TarConstants.java
index fa4e40a..9dde016 100644
--- a/src/main/java/org/apache/commons/compress/archivers/tar/TarConstants.java
+++ b/src/main/java/org/apache/commons/compress/archivers/tar/TarConstants.java
@@ -319,34 +319,40 @@
/**
* The magix string used in the last four bytes of the header to
* identify the xstar format.
+ * @since 1.11
*/
String MAGIC_XSTAR = "tar\0";
/**
* Offset inside the header for the xstar magic bytes.
+ * @since 1.11
*/
int XSTAR_MAGIC_OFFSET = 508;
/**
* Length of the XSTAR magic.
+ * @since 1.11
*/
int XSTAR_MAGIC_LEN = 4;
/**
* Length of the prefix field in xstar archives.
*
+ * @since 1.11
*/
int PREFIXLEN_XSTAR = 131;
/**
* The length of the access time field in a xstar header buffer.
*
+ * @since 1.11
*/
int ATIMELEN_XSTAR = 12;
/**
* The length of the created time field in a xstar header buffer.
*
+ * @since 1.11
*/
int CTIMELEN_XSTAR = 12;
}
diff --git a/src/main/java/org/apache/commons/compress/archivers/zip/ZipArchiveEntry.java b/src/main/java/org/apache/commons/compress/archivers/zip/ZipArchiveEntry.java
index f89a862..935f012 100644
--- a/src/main/java/org/apache/commons/compress/archivers/zip/ZipArchiveEntry.java
+++ b/src/main/java/org/apache/commons/compress/archivers/zip/ZipArchiveEntry.java
@@ -803,26 +803,56 @@
&& gpb.equals(other.gpb);
}
+ /**
+ * Sets the "version made by" field.
+ * @param versionMadeBy "version made by" field
+ * @since 1.11
+ */
public void setVersionMadeBy(int versionMadeBy) {
this.versionMadeBy = versionMadeBy;
}
+ /**
+ * Sets the "version required to expand" field.
+ * @param versionRequired "version required to expand" field
+ * @since 1.11
+ */
public void setVersionRequired(int versionRequired) {
this.versionRequired = versionRequired;
}
+ /**
+ * The "version required to expand" field.
+ * @return "version required to expand" field
+ * @since 1.11
+ */
public int getVersionRequired() {
return versionRequired;
}
+ /**
+ * The "version made by" field.
+ * @return "version made by" field
+ * @since 1.11
+ */
public int getVersionMadeBy() {
return versionMadeBy;
}
+ /**
+ * The content of the flags field.
+ * @return content of the flags field
+ * @since 1.11
+ */
public int getRawFlag() {
return rawFlag;
}
+ /**
+ * Sets the content of the flags field.
+ * @param rawFlag content of the flags field
+ * @since 1.11
+ */
public void setRawFlag(int rawFlag) {
this.rawFlag = rawFlag;
}