public class TiAPPManager extends Object
| Modifier and Type | Method and Description |
|---|---|
TiAPP |
activate(int type)
Activate the current APP
|
TiAPP |
activate(String typeName)
Activate the current APP
|
OutputStream |
create(int fid,
int size)
Create a new APP and return the OutputStream
|
TiAPP[] |
enumerate()
Enumerate the APPs
|
void |
format()
Format the APP storage area
|
TiAPP |
getAPP(int fid)
Gets the specified APP
|
int |
getAPPCapacity()
Gets the APP number capacity
|
TiAPP |
getAutorunAPP()
Gets the autorun APP
|
int |
getFreeSize()
Gets the free size, unit:B
|
static TiAPPManager |
getInstance()
Gets the TiAPPManager instance
|
TiAPP |
getRunningAPP()
Gets the current running APP
|
int |
getTotalSize()
Gets the total size, unit:B
|
public TiAPP activate(int type) throws IOException
type - : application type : 0 - generic , 1 -shellIOException - If an I/O error occursTiAPPpublic TiAPP activate(String typeName) throws IOException
typeName - type name,IOException - If an I/O error occurspublic OutputStream create(int fid, int size) throws IOException
fid - APP fid, if is 0,the system automatically assigns an idsize - APP sizeIOException - If an I/O error occurspublic TiAPP[] enumerate() throws IOException
IOException - If an I/O error occurspublic void format()
throws IOException
IOException - If an I/O error occurspublic TiAPP getAPP(int fid) throws IOException
fid - the APP idIOException - If an I/O error occurspublic int getAPPCapacity()
public TiAPP getAutorunAPP() throws IOException
IOException - If an I/O error occurspublic int getFreeSize()
public static TiAPPManager getInstance()
public TiAPP getRunningAPP() throws IOException
IOException - If an I/O error occurspublic int getTotalSize()