mirror of
https://github.com/AppleCommander/AppleCommander.git
synced 2024-12-21 17:29:55 +00:00
Added getMaximumFilenameLength. This is used by the ImportWizard
to keep names a sensible length.
This commit is contained in:
parent
c1fd274559
commit
70f5149d18
@ -86,6 +86,13 @@ public class DosFileEntry implements FileEntry {
|
||||
disk.writeSector(track, sector, sectorData);
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the maximum filename length.
|
||||
*/
|
||||
public int getMaximumFilenameLength() {
|
||||
return 30;
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the name of this file.
|
||||
* @see com.webcodepro.applecommander.storage.FileEntry#getFilename()
|
||||
|
@ -121,4 +121,9 @@ public interface FileEntry {
|
||||
* disk.
|
||||
*/
|
||||
public FormattedDisk getFormattedDisk();
|
||||
|
||||
/**
|
||||
* Return the maximum filename length.
|
||||
*/
|
||||
public int getMaximumFilenameLength();
|
||||
}
|
||||
|
@ -64,6 +64,13 @@ public class PascalFileEntry implements FileEntry {
|
||||
public String getFilename() {
|
||||
return AppleUtil.getPascalString(fileEntry, 6);
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the maximum filename length.
|
||||
*/
|
||||
public int getMaximumFilenameLength() {
|
||||
return 15;
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the filetype of this file.
|
||||
|
@ -139,6 +139,13 @@ public class ProdosFileEntry extends ProdosCommonEntry implements FileEntry {
|
||||
return fileName;
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the maximum filename length.
|
||||
*/
|
||||
public int getMaximumFilenameLength() {
|
||||
return 15;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the name of this file.
|
||||
*/
|
||||
|
@ -82,6 +82,13 @@ public class RdosFileEntry implements FileEntry {
|
||||
public String getFilename() {
|
||||
return isDeleted() ? "<NOT IN USE> " : AppleUtil.getString(fileEntry, 0, 24);
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the maximum filename length.
|
||||
*/
|
||||
public int getMaximumFilenameLength() {
|
||||
return 24;
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the filetype of this file.
|
||||
|
Loading…
Reference in New Issue
Block a user