Implemented null methods to fix compile errors: delete, setFileData,

setFilename, setFiletype, setLocaked.
This commit is contained in:
Robert Greene 2003-01-26 02:41:29 +00:00
parent 74a45b9f68
commit 4839761470
2 changed files with 72 additions and 0 deletions

View File

@ -64,6 +64,13 @@ public class PascalFileEntry implements FileEntry {
public String getFilename() {
return AppleUtil.getPascalString(fileEntry, 6);
}
/**
* Set the name of this file.
*/
public void setFilename(String filename) {
// FIXME: Need to implement!
}
/**
* Return the maximum filename length.
@ -92,6 +99,13 @@ public class PascalFileEntry implements FileEntry {
return filetypes[filetype-1];
}
}
/**
* Set the filetype.
*/
public void setFiletype(String filetype) {
// FIXME: Implement!
}
/**
* Identify if this file is locked - not applicable in Pascal?
@ -99,6 +113,13 @@ public class PascalFileEntry implements FileEntry {
public boolean isLocked() {
return false;
}
/**
* Set the lock indicator.
*/
public void setLocked(boolean lock) {
// FIXME: Implement!
}
/**
* Get the number of bytes used in files last block.
@ -144,6 +165,13 @@ public class PascalFileEntry implements FileEntry {
public boolean isDeleted() {
return false;
}
/**
* Delete the file.
*/
public void delete() {
// FIXME: Need to implement!
}
/**
* Get the file modification date.
@ -200,6 +228,14 @@ public class PascalFileEntry implements FileEntry {
public byte[] getFileData() {
return disk.getFileData(this);
}
/**
* Set file data. This, essentially, is saving data to disk using this
* file entry.
*/
public void setFileData(byte[] data) throws DiskFullException {
// FIXME: Implement!
}
/**
* Get the suggested FileFilter. This appears to be operating system

View File

@ -83,6 +83,13 @@ public class RdosFileEntry implements FileEntry {
return isDeleted() ? "<NOT IN USE> " : AppleUtil.getString(fileEntry, 0, 24);
}
/**
* Set the name of this file.
*/
public void setFilename(String filename) {
// FIXME: Need to implement!
}
/**
* Return the maximum filename length.
*/
@ -96,6 +103,13 @@ public class RdosFileEntry implements FileEntry {
public String getFiletype() {
return isDeleted() ? " " : AppleUtil.getString(fileEntry, 0x18, 1);
}
/**
* Set the filetype.
*/
public void setFiletype(String filetype) {
// FIXME: Implement!
}
/**
* Locked doesn't appear to be a concept under RDOS.
@ -103,6 +117,13 @@ public class RdosFileEntry implements FileEntry {
public boolean isLocked() {
return false;
}
/**
* Set the lock indicator.
*/
public void setLocked(boolean lock) {
// FIXME: Implement!
}
/**
* Compute the size of this file (in bytes).
@ -132,6 +153,13 @@ public class RdosFileEntry implements FileEntry {
public boolean isDeleted() {
return AppleUtil.getUnsignedByte(fileEntry[0]) == 0x80;
}
/**
* Delete the file.
*/
public void delete() {
// FIXME: Need to implement!
}
/**
* Get the standard file column header information.
@ -186,6 +214,14 @@ public class RdosFileEntry implements FileEntry {
return filedata;
}
/**
* Set file data. This, essentially, is saving data to disk using this
* file entry.
*/
public void setFileData(byte[] data) throws DiskFullException {
// FIXME: Implement!
}
/**
* Get the suggested FileFilter. This appears to be operating system
* specific, so each operating system needs to implement some manner