mirror of
https://github.com/AppleCommander/AppleCommander.git
synced 2025-01-03 10:29:19 +00:00
Added signatures for delete, setFileData *save*, setFilename,
setFiletype, SetLocked.
This commit is contained in:
parent
b651717ada
commit
411f11fad9
@ -33,17 +33,32 @@ public interface FileEntry {
|
|||||||
*/
|
*/
|
||||||
public String getFilename();
|
public String getFilename();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the name of this file.
|
||||||
|
*/
|
||||||
|
public void setFilename(String filename);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Return the filetype of this file.
|
* Return the filetype of this file.
|
||||||
* This will be OS specific.
|
* This will be OS specific.
|
||||||
*/
|
*/
|
||||||
public String getFiletype();
|
public String getFiletype();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the filetype.
|
||||||
|
*/
|
||||||
|
public void setFiletype(String filetype);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Identify if this file is locked.
|
* Identify if this file is locked.
|
||||||
*/
|
*/
|
||||||
public boolean isLocked();
|
public boolean isLocked();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the lock indicator.
|
||||||
|
*/
|
||||||
|
public void setLocked(boolean lock);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Compute the size of this file (in bytes).
|
* Compute the size of this file (in bytes).
|
||||||
*/
|
*/
|
||||||
@ -67,6 +82,11 @@ public interface FileEntry {
|
|||||||
* Identify if this file has been deleted.
|
* Identify if this file has been deleted.
|
||||||
*/
|
*/
|
||||||
public boolean isDeleted();
|
public boolean isDeleted();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Delete the file.
|
||||||
|
*/
|
||||||
|
public void delete();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the standard file column header information.
|
* Get the standard file column header information.
|
||||||
@ -82,6 +102,12 @@ public interface FileEntry {
|
|||||||
*/
|
*/
|
||||||
public byte[] getFileData();
|
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
|
* Get the suggested FileFilter. This appears to be operating system
|
||||||
* specific, so each operating system needs to implement some manner
|
* specific, so each operating system needs to implement some manner
|
||||||
|
Loading…
Reference in New Issue
Block a user