Added method to retrieve the block the ProDOS file entry sits on;

fixed the naming of a few methods.
This commit is contained in:
Robert Greene 2003-01-11 22:06:22 +00:00
parent 879f793e02
commit 5bc83c05f2
1 changed files with 13 additions and 6 deletions

View File

@ -44,7 +44,7 @@ public class ProdosCommonEntry {
* The offset into the block that the FileEntry is at.
*/
private int offset;
/**
* Constructor for ProdosCommonEntry.
*/
@ -55,6 +55,13 @@ public class ProdosCommonEntry {
this.offset = offset;
}
/**
* Get the block in which the FileEntry resides.
*/
protected int getFileEntryBlock() {
return block;
}
/**
* Get the ProdosFormatDisk that this FileEntry is attached to.
*/
@ -249,7 +256,7 @@ public class ProdosCommonEntry {
/**
* Set if this file may be destroyed.
*/
public void setDestroy(boolean destroy) {
public void setCanDestroy(boolean destroy) {
setAccess(7, destroy);
}
@ -263,7 +270,7 @@ public class ProdosCommonEntry {
/**
* Set if this file may be renamed.
*/
public void setRename(boolean rename) {
public void setCanRename(boolean rename) {
setAccess(6, rename);
}
@ -277,7 +284,7 @@ public class ProdosCommonEntry {
/**
* Set if this file has changed since last backup.
*/
public void setChanged(boolean changed) {
public void setHasChanged(boolean changed) {
setAccess(5, changed);
}
@ -291,7 +298,7 @@ public class ProdosCommonEntry {
/**
* Set if this file may be written.
*/
public void setWrite(boolean write) {
public void setCanWrite(boolean write) {
setAccess(1, write);
}
@ -305,7 +312,7 @@ public class ProdosCommonEntry {
/**
* Set if this file may be read.
*/
public void setRead(boolean read) {
public void setCanRead(boolean read) {
setAccess(0, read);
}