Added getFormattedDisk.

This commit is contained in:
Robert Greene 2002-12-15 21:00:35 +00:00
parent 6c79c05f14
commit e35d41f336
5 changed files with 42 additions and 0 deletions

View File

@ -268,4 +268,13 @@ public class DosFileEntry implements FileEntry {
public boolean isBinaryFile() { public boolean isBinaryFile() {
return "B".equals(getFiletype()); return "B".equals(getFiletype());
} }
/**
* Get the FormattedDisk associated with this FileEntry.
* This is useful to interfaces that need to retrieve the associated
* disk.
*/
public FormattedDisk getFormattedDisk() {
return disk;
}
} }

View File

@ -88,4 +88,11 @@ public interface FileEntry {
* of guessing the appropriate filter. * of guessing the appropriate filter.
*/ */
public FileFilter getSuggestedFilter(); public FileFilter getSuggestedFilter();
/**
* Get the FormattedDisk associated with this FileEntry.
* This is useful to interfaces that need to retrieve the associated
* disk.
*/
public FormattedDisk getFormattedDisk();
} }

View File

@ -206,4 +206,12 @@ public class PascalFileEntry implements FileEntry {
return new BinaryFileFilter(); return new BinaryFileFilter();
} }
/**
* Get the FormattedDisk associated with this FileEntry.
* This is useful to interfaces that need to retrieve the associated
* disk.
*/
public FormattedDisk getFormattedDisk() {
return disk;
}
} }

View File

@ -308,4 +308,13 @@ public class ProdosCommonEntry {
public void setRead(boolean read) { public void setRead(boolean read) {
setAccess(0, read); setAccess(0, read);
} }
/**
* Get the FormattedDisk associated with this FileEntry.
* This is useful to interfaces that need to retrieve the associated
* disk.
*/
public FormattedDisk getFormattedDisk() {
return disk;
}
} }

View File

@ -236,4 +236,13 @@ public class RdosFileEntry implements FileEntry {
public boolean isBinaryFile() { public boolean isBinaryFile() {
return "B".equals(getFiletype()); return "B".equals(getFiletype());
} }
/**
* Get the FormattedDisk associated with this FileEntry.
* This is useful to interfaces that need to retrieve the associated
* disk.
*/
public FormattedDisk getFormattedDisk() {
return disk;
}
} }