SunSPOT API V3.0


com.sun.spot.flashmanagement
Interface IFlashFileInfo

All Known Subinterfaces:
IExtendedFlashFileInfo
All Known Implementing Classes:
FlashFile, 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()
           throws IOException
Get the length of the file with this name

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

getVirtualAddress

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

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

getComment

String getComment()
                  throws IOException
Get the comment for this file

Returns:
the comment attached to the file's descriptor
Throws:
IOException

lastModified

long lastModified()
                  throws IOException
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.
Throws:
IOException

isObsolete

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

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

getName

String getName()
Get the name of this file

Returns:
the name of this file

SunSPOT API V3.0


Copyright © 2006, 2007 Sun Microsystems, Inc. All Rights Reserved.