1 /*** 2 * 3 */ 4 package com.fernsroth.squashfs.model; 5 6 import com.fernsroth.squashfs.model.squashfs.squashfs_fragment_entry; 7 8 /*** 9 * 10 * @author Joseph M. Ferner (Near Infinity Corporation) 11 */ 12 public class SFSSquashedFile extends SFSFile { 13 14 /*** 15 * 16 */ 17 private long blockPtr; 18 19 /*** 20 * 21 */ 22 private long start; 23 24 /*** 25 * 26 */ 27 private int blocks; 28 29 /*** 30 * 31 */ 32 private long offset; 33 34 /*** 35 * the fragment entry. 36 */ 37 private squashfs_fragment_entry fragmentEntry; 38 39 /*** 40 * number of fragment bytes. 41 */ 42 private long fragmentBytes; 43 44 /*** 45 * constructor. 46 * @param name the name of the file. 47 * @param mode the mode. 48 * @param mTime the modify time. 49 * @param guid the group id. 50 * @param uid the user id. 51 * @param start 52 * @param blocks 53 * @param offset 54 * @param blockPtr 55 * @param fragmentEntry 56 * @param fragmentBytes 57 */ 58 public SFSSquashedFile(String name, int mode, long mTime, long guid, 59 long uid, long start, int blocks, long offset, long blockPtr, 60 squashfs_fragment_entry fragmentEntry, long fragmentBytes) { 61 super(name, mode, mTime, guid, uid); 62 this.start = start; 63 this.blocks = blocks; 64 this.offset = offset; 65 this.blockPtr = blockPtr; 66 this.fragmentEntry = fragmentEntry; 67 this.fragmentBytes = fragmentBytes; 68 } 69 70 /*** 71 * @return the blockPtr 72 */ 73 public long getBlockPtr() { 74 return this.blockPtr; 75 } 76 77 /*** 78 * @return the blocks 79 */ 80 public int getBlocks() { 81 return this.blocks; 82 } 83 84 /*** 85 * @return the offset 86 */ 87 public long getOffset() { 88 return this.offset; 89 } 90 91 /*** 92 * @return the start 93 */ 94 public long getStart() { 95 return this.start; 96 } 97 98 /*** 99 * @return the fragment entry. 100 */ 101 public squashfs_fragment_entry getFragmentEntry() { 102 return this.fragmentEntry; 103 } 104 105 /*** 106 * @return number of fragment bytes. 107 */ 108 public long getFragmentBytes() { 109 return this.fragmentBytes; 110 } 111 112 }