uk.me.parabola.imgfmt.fs
Interface DirectoryEntry


public interface DirectoryEntry

Interface used for directory entries used to represent files. A directory entry has the file name, its extension (its a 8+3 filename) and the size of the file.

Author:
Steve Ratcliffe

Field Summary
static int ENTRY_SIZE
           
static int SLOTS_PER_ENTRY
           
 
Method Summary
 java.lang.String getExt()
          Get the file extension.
 java.lang.String getFullName()
          Get the full name.
 java.lang.String getName()
          Get the file name.
 int getSize()
          Get the file size.
 boolean isSpecial()
          If this is a special 'hidden' file.
 

Field Detail

ENTRY_SIZE

static final int ENTRY_SIZE
See Also:
Constant Field Values

SLOTS_PER_ENTRY

static final int SLOTS_PER_ENTRY
See Also:
Constant Field Values
Method Detail

getName

java.lang.String getName()
Get the file name.

Returns:
The file name.

getExt

java.lang.String getExt()
Get the file extension.

Returns:
The file extension.

getFullName

java.lang.String getFullName()
Get the full name. That is name + extension.

Returns:
The full name as NAME.EXT

getSize

int getSize()
Get the file size.

Returns:
The size of the file in bytes.

isSpecial

boolean isSpecial()
If this is a special 'hidden' file. True for the all-spaces 'file'.

Returns:
True if this is not a regular file.