1 /*** 2 * 3 */ 4 package com.fernsroth.squashfs.model; 5 6 import java.util.ArrayList; 7 import java.util.List; 8 9 /*** 10 * 11 * @author Joseph M. Ferner (Near Infinity Corporation) 12 */ 13 public class Directory extends BaseFile { 14 15 /*** 16 * subentries. 17 */ 18 private List<BaseFile> subentries = new ArrayList<BaseFile>(); 19 20 /*** 21 * constructor. 22 * @param name the name of the file. 23 * @param mode the mode. 24 * @param mTime the modify time. 25 * @param guid the group id. 26 * @param uid the user id. 27 */ 28 public Directory(String name, int mode, long mTime, long guid, long uid) { 29 super(name, mode, mTime, guid, uid); 30 } 31 32 /*** 33 * adds a subentry. 34 * @param subentry the subentry to add. 35 */ 36 public void addSubentry(BaseFile subentry) { 37 this.subentries.add(subentry); 38 } 39 40 /*** 41 * @return the subentries 42 */ 43 public List<BaseFile> getSubentries() { 44 return this.subentries; 45 } 46 47 }