|
@@ -94,9 +94,6 @@ public class TarEntry implements TarConstants { |
|
|
/** The entry's modification time. */ |
|
|
/** The entry's modification time. */ |
|
|
private long modTime; |
|
|
private long modTime; |
|
|
|
|
|
|
|
|
/** The entry's checksum. */ |
|
|
|
|
|
private int checkSum; |
|
|
|
|
|
|
|
|
|
|
|
/** The entry's link flag. */ |
|
|
/** The entry's link flag. */ |
|
|
private byte linkFlag; |
|
|
private byte linkFlag; |
|
|
|
|
|
|
|
@@ -173,7 +170,6 @@ public class TarEntry implements TarConstants { |
|
|
this.userId = 0; |
|
|
this.userId = 0; |
|
|
this.groupId = 0; |
|
|
this.groupId = 0; |
|
|
this.size = 0; |
|
|
this.size = 0; |
|
|
this.checkSum = 0; |
|
|
|
|
|
this.modTime = (new Date()).getTime() / MILLIS_PER_SECOND; |
|
|
this.modTime = (new Date()).getTime() / MILLIS_PER_SECOND; |
|
|
this.linkName = new StringBuffer(""); |
|
|
this.linkName = new StringBuffer(""); |
|
|
this.userName = new StringBuffer(""); |
|
|
this.userName = new StringBuffer(""); |
|
@@ -258,7 +254,6 @@ public class TarEntry implements TarConstants { |
|
|
|
|
|
|
|
|
this.size = file.length(); |
|
|
this.size = file.length(); |
|
|
this.modTime = file.lastModified() / MILLIS_PER_SECOND; |
|
|
this.modTime = file.lastModified() / MILLIS_PER_SECOND; |
|
|
this.checkSum = 0; |
|
|
|
|
|
this.devMajor = 0; |
|
|
this.devMajor = 0; |
|
|
this.devMinor = 0; |
|
|
this.devMinor = 0; |
|
|
} |
|
|
} |
|
@@ -625,7 +620,6 @@ public class TarEntry implements TarConstants { |
|
|
offset += SIZELEN; |
|
|
offset += SIZELEN; |
|
|
this.modTime = TarUtils.parseOctal(header, offset, MODTIMELEN); |
|
|
this.modTime = TarUtils.parseOctal(header, offset, MODTIMELEN); |
|
|
offset += MODTIMELEN; |
|
|
offset += MODTIMELEN; |
|
|
this.checkSum = (int) TarUtils.parseOctal(header, offset, CHKSUMLEN); |
|
|
|
|
|
offset += CHKSUMLEN; |
|
|
offset += CHKSUMLEN; |
|
|
this.linkFlag = header[offset++]; |
|
|
this.linkFlag = header[offset++]; |
|
|
this.linkName = TarUtils.parseName(header, offset, NAMELEN); |
|
|
this.linkName = TarUtils.parseName(header, offset, NAMELEN); |
|
|