Added getFormattedDisk.
This commit is contained in:
parent
6c79c05f14
commit
e35d41f336
|
@ -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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
|
@ -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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue