SunSPOT API V5.0


com.sun.spot.flashmanagement
Interface IFlashFileInfo

All Known Subinterfaces:
IExtendedFlashFileInfo
All Known Implementing Classes:
OTAFlashFileInfo

public interface IFlashFileInfo

IFlashFileInfo provides a read-only interface to files in the flash filing system


Method Summary
 String getComment()
          Get the comment for this file
 String getName()
          Get the name of this file
 int getVirtualAddress()
          Get the virtual address of a mapped file
 boolean isObsolete()
          Check whether the file with this name is obsolete
 long lastModified()
          Get the time at which this file was last modified
 int length()
          Get the length of the file with this name
 

Method Detail

length

int length()
Get the length of the file with this name

Returns:
the length in bytes of the valid portion of the file with this name

getVirtualAddress

int getVirtualAddress()
Get the virtual address of a mapped file

Returns:
the virtual address of the file, or 0 if it is not a mapped file

getComment

String getComment()
Get the comment for this file

Returns:
the comment attached to the file's descriptor

lastModified

long lastModified()
Get the time at which this file was last modified

Returns:
the time (as returned by System.currentTimeMillis()) at which this file was last modified.

isObsolete

boolean isObsolete()
Check whether the file with this name is obsolete

Returns:
true if this file is marked obsolete, false if it is not

getName

String getName()
Get the name of this file

Returns:
the name of this file

SunSPOT API V5.0


Copyright � 2006-2008 Sun Microsystems, Inc. All Rights Reserved.