1 /*** 2 * 3 */ 4 package com.fernsroth.squashfs.model; 5 6 /*** 7 * base class for files. 8 * @author Joseph M. Ferner (Near Infinity Corporation) 9 */ 10 public abstract class BaseFile { 11 /*** 12 * name of the file. 13 */ 14 private String name; 15 16 /*** 17 * 18 */ 19 private int mode; 20 21 /*** 22 * 23 */ 24 private long mTime; 25 26 /*** 27 * 28 */ 29 private long guid; 30 31 /*** 32 * 33 */ 34 private long uid; 35 36 /*** 37 * constructor. 38 * @param name the name of the file. 39 * @param mode the mode. 40 * @param mTime the modify time. 41 * @param guid the group id. 42 * @param uid the user id. 43 */ 44 public BaseFile(String name, int mode, long mTime, long guid, long uid) { 45 this.name = name; 46 this.mode = mode; 47 this.mTime = mTime; 48 this.guid = guid; 49 this.uid = uid; 50 } 51 52 /*** 53 * @return the guid 54 */ 55 public long getGuid() { 56 return this.guid; 57 } 58 59 /*** 60 * @return the mTime 61 */ 62 public long getMTime() { 63 return this.mTime; 64 } 65 66 /*** 67 * @return the uid 68 */ 69 public long getUid() { 70 return this.uid; 71 } 72 73 /*** 74 * @return the mode 75 */ 76 public int getMode() { 77 return this.mode; 78 } 79 80 /*** 81 * @return the name 82 */ 83 public String getName() { 84 return this.name; 85 } 86 87 }