|
SunSPOT API V3.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.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(IFlashFileInfo 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()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OTAFlashFileInfo(byte[] rawInfo) throws IOException
OTAFlashFileInfo
from its serialised representation (see toByteArray()
rawInfo
-
IOException
public OTAFlashFileInfo(IFlashFileInfo 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 IFlashFileInfo
IFlashFileInfo.getComment()
public boolean isObsolete()
IFlashFileInfo
isObsolete
in interface IFlashFileInfo
IFlashFileInfo.isObsolete()
public long lastModified()
IFlashFileInfo
lastModified
in interface IFlashFileInfo
IFlashFileInfo.lastModified()
public int length()
IFlashFileInfo
length
in interface IFlashFileInfo
IFlashFileInfo.length()
public String getName()
IFlashFileInfo
getName
in interface IFlashFileInfo
IFlashFileInfo.getName()
public int getVirtualAddress()
IFlashFileInfo
getVirtualAddress
in interface IFlashFileInfo
IFlashFileInfo.getVirtualAddress()
public byte[] toByteArray() throws IOException
IOException
|
SunSPOT API V3.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |