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

View File

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