KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > de > masters_of_disaster > ant > tasks > ar > ArConstants


1 package de.masters_of_disaster.ant.tasks.ar;
2
3 /**
4  * This interface contains all the definitions used in the package.
5  */

6
7 public interface ArConstants {
8     /**
9      * The length of the name field in a file header.
10      */

11     int NAMELEN = 16;
12
13     /**
14      * The length of the file date field in a file header.
15      */

16     int FILEDATELEN = 12;
17
18     /**
19      * The length of the user id field in a file header.
20      */

21     int UIDLEN = 6;
22
23     /**
24      * The length of the group id field in a file header.
25      */

26     int GIDLEN = 6;
27
28     /**
29      * The length of the mode field in a file header.
30      */

31     int MODELEN = 8;
32
33     /**
34      * The length of the size field in a file header.
35      */

36     int SIZELEN = 10;
37
38     /**
39      * The length of the magic field in a file header.
40      */

41     int MAGICLEN = 2;
42
43     /**
44      * The magic tag put at the end of a file header.
45      */

46     String JavaDoc HEADERMAGIC = "`\n";
47
48     /**
49      * The headerlength of a file header.
50      */

51     int HEADERLENGTH = NAMELEN + FILEDATELEN + UIDLEN + GIDLEN + MODELEN + SIZELEN + MAGICLEN;
52
53     /**
54      * The length of the magic field in a file header.
55      */

56     byte[] PADDING = { '\n' };
57
58     /**
59      * The magic tag representing an ar archive.
60      */

61     byte[] ARMAGIC = { '!', '<', 'a', 'r', 'c', 'h', '>', '\n' };
62 }
63
Popular Tags