Home | History | Annotate | Download | only in fat

Lines Matching refs:fat

19 package de.waldheinz.fs.fat;
28 * A chain of clusters as stored in a {@link Fat}.
33 protected final Fat fat;
43 * @param fat the {@code Fat} that holds the new chain
46 public ClusterChain(Fat fat, boolean readOnly) {
47 this(fat, 0, readOnly);
50 public ClusterChain(Fat fat, long startCluster, boolean readOnly) {
53 this.fat = fat;
56 this.fat.testCluster(startCluster);
58 if (this.fat.isFreeCluster(startCluster))
63 this.device = fat.getDevice();
64 this.dataOffset = FatUtils.getFilesOffset(fat.getBootSector());
66 this.clusterSize = fat.getBootSector().getBytesPerCluster();
73 public Fat getFat() {
74 return fat;
102 ((cluster - Fat.FIRST_CLUSTER) * clusterSize);
164 final long[] chain = fat.allocNew(nrClusters);
167 final long[] chain = fat.getChain(startCluster);
175 fat.allocAppend(getStartCluster());
181 fat.setEof(chain[nrClusters - 1]);
183 fat.setFree(chain[i]);
187 fat.setFree(chain[i]);
254 final long[] chain = fat.getChain(getStartCluster());
289 if (this.fat != other.fat &&
290 (this.fat == null || !this.fat.equals(other.fat))) {
306 (this.fat != null ? this.fat.hashCode() : 0);