-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFile.java
More file actions
43 lines (33 loc) · 852 Bytes
/
File.java
File metadata and controls
43 lines (33 loc) · 852 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
package OperatingSystem;
public class File {
private String name;
private int size; /* Number of block size */
private int startingAddress; /* The starting address of the file in our FAT */
public File(String name, int size, int startingAddress) {
this.name = name;
this.size = size;
this.startingAddress = startingAddress;
}
@Override
public String toString() {
return name + ", " + size + ", " + startingAddress;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public int getSize() {
return size;
}
public void setSize(int size) {
this.size = size;
}
public int getStartingAddress() {
return startingAddress;
}
public void setStartingAddress(int startingAddress) {
this.startingAddress = startingAddress;
}
}