|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
This interface represents a local or remote file object.
This interface serves as a base interface for the "two-phase" file operations, in other words,
the operation will not happen until the commit() method is invoked. The operation
can also be cancelled by invoking the abort() method if the commit() method
has not been invoked yet.
| Method Summary | |
void |
abort()
Aborts the transaction. |
void |
commit()
Commits the transaction. |
java.lang.String |
getName()
Returns the name of the file object. |
long |
getSize()
Returns the size of the file. |
| Method Detail |
public java.lang.String getName()
Returns the name of the file object.
String.
public long getSize()
throws SDKException
Returns the size of the file.
long that indicates file's size in kilobytes.
SDKException - This is thrown if the process is unsuccessful.
public void commit()
throws SDKException
Commits the transaction.
SDKException - This is thrown if the process is unsuccessful.public void abort()
Aborts the transaction.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||