|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
| Method Summary | |
void |
close()
Closes a connection. |
void |
deleteFile(int fid)
Removes a file from the device. |
DeviceInfo |
getDeviceInfo()
Returns an object encapsulating basic device information -- number of storage devices, system software name, and firmware version. |
DeviceSettings |
getDeviceSettings()
Retrieves the Pearl device's settings as a DeviceSettings object. |
FileInfo |
getFileByFID(int fid)
Returns a file by FID, or null if no such FID exists. |
long |
getFileCount()
Returns the number of files available on the device. |
java.util.Iterator |
getFileIterator()
Returns an iterator for the known files. |
int |
getMaxFID()
Returns the highest allocated FID. |
StorageInfo |
getStorageInfo(int index)
Retrieves information about a storage device in the Pearl device. |
int[] |
getVersion()
Returns the version of the protocol being used as an array of two integers: the major and minor versions, respectively. |
boolean |
isAuthenticated()
Checks to see if the underlying session has been successfully authenticated. |
void |
readFile(int fid,
java.io.File dest)
Downloads a file from the device by FID. |
void |
setAuthHandler(AuthHandler handler)
Sets the AuthHandler to be used if authentication is required. |
void |
setFileInfo(int fid,
FileInfo newInfo)
Updates information for a file identified by FID. |
void |
setProgressHandler(ProgressHandler handler)
Sets a library-global ProgressHandler. |
int |
writeFile(java.io.File src)
Writes a local file to the device. |
int |
writeTaxiFile(java.io.File src)
Writes a local file to the device without attempting to interpret the file as a song. |
| Method Detail |
public int[] getVersion()
throws PearlException
PearlExceptionpublic void setAuthHandler(AuthHandler handler)
public boolean isAuthenticated()
public void setProgressHandler(ProgressHandler handler)
public DeviceInfo getDeviceInfo()
throws PearlException
PearlException
public StorageInfo getStorageInfo(int index)
throws PearlException
PearlException
public DeviceSettings getDeviceSettings()
throws PearlException
PearlException
public long getFileCount()
throws PearlException
PearlException
public java.util.Iterator getFileIterator()
throws PearlException
PearlException
public FileInfo getFileByFID(int fid)
throws PearlException
PearlException
public void setFileInfo(int fid,
FileInfo newInfo)
throws PearlException
PearlException
public int getMaxFID()
throws PearlException
PearlException
public int writeFile(java.io.File src)
throws PearlException,
java.io.FileNotFoundException,
java.io.IOException
PearlException
java.io.FileNotFoundException
java.io.IOException
public int writeTaxiFile(java.io.File src)
throws PearlException,
java.io.FileNotFoundException,
java.io.IOException
PearlException
java.io.FileNotFoundException
java.io.IOException
public void readFile(int fid,
java.io.File dest)
throws PearlException,
java.io.IOException
PearlException
java.io.IOException
public void deleteFile(int fid)
throws PearlException
PearlExceptionpublic void close()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||