From 411f11fad989b677e05897f8ec4a73d2cdae6f4b Mon Sep 17 00:00:00 2001 From: Robert Greene Date: Mon, 23 Dec 2002 21:08:23 +0000 Subject: [PATCH] Added signatures for delete, setFileData *save*, setFilename, setFiletype, SetLocked. --- .../applecommander/storage/FileEntry.java | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/src/com/webcodepro/applecommander/storage/FileEntry.java b/src/com/webcodepro/applecommander/storage/FileEntry.java index f1d9892..f263b4d 100644 --- a/src/com/webcodepro/applecommander/storage/FileEntry.java +++ b/src/com/webcodepro/applecommander/storage/FileEntry.java @@ -33,17 +33,32 @@ public interface FileEntry { */ public String getFilename(); + /** + * Set the name of this file. + */ + public void setFilename(String filename); + /** * Return the filetype of this file. * This will be OS specific. */ public String getFiletype(); + /** + * Set the filetype. + */ + public void setFiletype(String filetype); + /** * Identify if this file is locked. */ public boolean isLocked(); + /** + * Set the lock indicator. + */ + public void setLocked(boolean lock); + /** * Compute the size of this file (in bytes). */ @@ -67,6 +82,11 @@ public interface FileEntry { * Identify if this file has been deleted. */ public boolean isDeleted(); + + /** + * Delete the file. + */ + public void delete(); /** * Get the standard file column header information. @@ -82,6 +102,12 @@ public interface FileEntry { */ public byte[] getFileData(); + /** + * Set file data. This, essentially, is saving data to disk using this + * file entry. + */ + public void setFileData(byte[] data) throws DiskFullException; + /** * Get the suggested FileFilter. This appears to be operating system * specific, so each operating system needs to implement some manner