mirror of
https://github.com/AppleCommander/AppleCommander.git
synced 2024-10-31 16:04:51 +00:00
Added test to indicate if this entry is empty. Used to determine if this
is a valid entry or unused space.
This commit is contained in:
parent
ced0fba9f2
commit
4652ac9f63
@ -79,6 +79,17 @@ public class ProdosCommonEntry {
|
||||
return entry;
|
||||
}
|
||||
|
||||
/**
|
||||
* Indicates if this entry is empty - filled with $00.
|
||||
*/
|
||||
public boolean isEmpty() {
|
||||
byte[] entry = readFileEntry();
|
||||
for (int i=0; i<entry.length; i++) {
|
||||
if (entry[i] != 0x00) return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Write the fileEntry data to the disk image.
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user