/jEdit/tags/jedit-4-3-pre9/de/masters_of_disaster/ant/tasks/ar/ArConstants.java

# · Java · 62 lines · 14 code · 12 blank · 36 comment · 0 complexity · 8a9690e1d6e0dfb35fa28e27fec024ce MD5 · raw file

  1. package de.masters_of_disaster.ant.tasks.ar;
  2. /**
  3. * This interface contains all the definitions used in the package.
  4. */
  5. public interface ArConstants {
  6. /**
  7. * The length of the name field in a file header.
  8. */
  9. int NAMELEN = 16;
  10. /**
  11. * The length of the file date field in a file header.
  12. */
  13. int FILEDATELEN = 12;
  14. /**
  15. * The length of the user id field in a file header.
  16. */
  17. int UIDLEN = 6;
  18. /**
  19. * The length of the group id field in a file header.
  20. */
  21. int GIDLEN = 6;
  22. /**
  23. * The length of the mode field in a file header.
  24. */
  25. int MODELEN = 8;
  26. /**
  27. * The length of the size field in a file header.
  28. */
  29. int SIZELEN = 10;
  30. /**
  31. * The length of the magic field in a file header.
  32. */
  33. int MAGICLEN = 2;
  34. /**
  35. * The magic tag put at the end of a file header.
  36. */
  37. String HEADERMAGIC = "`\n";
  38. /**
  39. * The headerlength of a file header.
  40. */
  41. int HEADERLENGTH = NAMELEN + FILEDATELEN + UIDLEN + GIDLEN + MODELEN + SIZELEN + MAGICLEN;
  42. /**
  43. * The length of the magic field in a file header.
  44. */
  45. byte[] PADDING = { '\n' };
  46. /**
  47. * The magic tag representing an ar archive.
  48. */
  49. byte[] ARMAGIC = { '!', '<', 'a', 'r', 'c', 'h', '>', '\n' };
  50. }