View Javadoc

1   package org.vafer.jdeb.ar;
2   
3   /**
4    * @author Emmanuel Bourg
5    * @version $Revision$, $Date$
6    */
7   interface ArConstants {
8   
9   	static final byte[] HEADER = "!<arch>\n".getBytes();
10  
11  	static final byte[] ENTRY_TERMINATOR = "`\012".getBytes();
12  
13  	static final int FIELD_SIZE_NAME = 16;
14  	static final int FIELD_SIZE_LASTMODIFIED = 12;
15  	static final int FIELD_SIZE_UID = 6;
16  	static final int FIELD_SIZE_GID = 6;
17  	static final int FIELD_SIZE_MODE = 8;
18  	static final int FIELD_SIZE_LENGTH = 10;
19  
20  	static final int HEADER_SIZE =
21  			FIELD_SIZE_NAME
22  			+ FIELD_SIZE_LASTMODIFIED
23  			+ FIELD_SIZE_UID
24  			+ FIELD_SIZE_GID
25  			+ FIELD_SIZE_MODE
26  			+ FIELD_SIZE_LENGTH
27  			+ ENTRY_TERMINATOR.length;
28  
29  }