View Javadoc

1   /*
2    * Copyright 2005 The Apache Software Foundation.
3    * 
4    * Licensed under the Apache License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    * 
8    *      http://www.apache.org/licenses/LICENSE-2.0
9    * 
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  package org.vafer.jdeb.ar;
17  
18  /**
19   * To be replace by commons compress once released
20   * 
21   * @author Torsten Curdt <tcurdt@vafer.org>
22   */
23  public final class ArEntry {
24  
25  	private final String name;
26  	private int userId;
27  	private int groupId;
28  	private int mode;
29  	private long lastModified;
30  	private long length;
31  
32  	public ArEntry(String name, long length) {
33  		this(name, length, 0, 0, 33188, System.currentTimeMillis());
34  	}
35  
36  	public ArEntry(String name, long length, int userId, int groupId, int mode, long lastModified) {
37  		this.name = name;
38  		this.length = length;
39  		this.userId = userId;
40  		this.groupId = groupId;
41  		this.mode = mode;
42  		this.lastModified = lastModified;
43  	}
44  
45  	public String getName() {
46  		return name;
47  	}
48  
49  	public int getUserId() {
50  		return userId;
51  	}
52  
53  	public int getGroupId() {
54  		return groupId;
55  	}
56  
57  	public int getMode() {
58  		return mode;
59  	}
60  
61  	public long getLastModified() {
62  		return lastModified;
63  	}
64  
65  	public long getLength() {
66  		return length;
67  	}
68  }