|
SunSPOT API V4.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.spot.peripheral.ota.OTAFlashFileInfo
public class OTAFlashFileInfo
OTAFlashFileInfo records information about a FlashFile instance so that it can be serialised for transmission to a host process.
| Constructor Summary | |
|---|---|
OTAFlashFileInfo(byte[] rawInfo)
Reconstruct an OTAFlashFileInfo from its serialised representation (see toByteArray() |
|
OTAFlashFileInfo(FlashFile file)
Construct a new OTAFlashFileInfo from a FlashFile |
|
OTAFlashFileInfo(String comment,
String name,
int virtualAddress,
boolean isObsolete,
long lastModified,
int length,
boolean exists)
This constructor is intended for test use only. |
|
| 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 |
byte[] |
toByteArray()
|
String |
toString()
Returns a string representation of the object. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public OTAFlashFileInfo(byte[] rawInfo)
throws IOException
OTAFlashFileInfo from its serialised representation (see toByteArray()
rawInfo -
IOException
public OTAFlashFileInfo(FlashFile file)
throws IOException
OTAFlashFileInfo from a FlashFile
file - the FlashFile to copy information from
IOException
public OTAFlashFileInfo(String comment,
String name,
int virtualAddress,
boolean isObsolete,
long lastModified,
int length,
boolean exists)
comment - name - virtualAddress - isObsolete - lastModified - length - exists - | Method Detail |
|---|
public String getComment()
IFlashFileInfo
getComment in interface IFlashFileInfoIFlashFileInfo.getComment()public boolean isObsolete()
IFlashFileInfo
isObsolete in interface IFlashFileInfoIFlashFileInfo.isObsolete()public long lastModified()
IFlashFileInfo
lastModified in interface IFlashFileInfoIFlashFileInfo.lastModified()public int length()
IFlashFileInfo
length in interface IFlashFileInfoIFlashFileInfo.length()public String getName()
IFlashFileInfo
getName in interface IFlashFileInfoIFlashFileInfo.getName()public int getVirtualAddress()
IFlashFileInfo
getVirtualAddress in interface IFlashFileInfoIFlashFileInfo.getVirtualAddress()
public byte[] toByteArray()
throws IOException
IOExceptionpublic String toString()
ObjecttoString method returns a string that
"textually represents" this object. The result should
be a concise but informative representation that is easy for a
person to read.
It is recommended that all subclasses override this method.
The toString method for class Object
returns a string consisting of the name of the class of which the
object is an instance, the at-sign character `@', and
the unsigned hexadecimal representation of the hash code of the
object. In other words, this method returns a string equal to the
value of:
getClass().getName() + '@' + Integer.toHexString(hashCode())
toString in class Object
|
SunSPOT API V4.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||