|
jSyncManager | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jSyncManager.API.Conduit.ConduitHandler
The Conduit Handler class. This class provides high-level access to Palm data structures for synchronization logic classes conforming to the jConduit specification. Note that this class cannot be constructed outside its parent package. jConduits are passed an active instance of the ConduitHandler at sync time.
| Field Summary | |
static java.awt.Frame |
frame
|
static byte |
READ_ID_LIST_SORT_FLAG
|
static double |
version
|
static byte |
WRITE_APP_PREF_BACKUP
|
| Constructor Summary | |
ConduitHandler(ConduitManager cmanager,
JHotSync jhotsync)
Constructs a new Conduit Handler object, using the specified jSyncManager instance as its parent, and the specified jHotSync instance for Palm communications. |
|
| Method Summary | |
void |
addSyncLogEntry(java.lang.String text)
Adds an entry to the Palm's synchronization log. |
void |
cleanupDatabase(byte dbID)
Cleans-up the specified database. |
void |
closeAllDatabases()
Closes all open databases. |
void |
closeDatabase(byte dbID)
Closes a specified database. |
void |
closeVFSFile(FileReference file)
Closes the specified file reference on a VFS volume. |
byte |
createDatabase(java.lang.String creator,
java.lang.String type,
java.lang.String dbName,
char flags,
char version)
Creates a new database with the specified parameters. |
void |
createVFSDirectory(VolumeReference volRef,
java.lang.String pathname)
Creates the specified directory on the specified VFS volume. |
void |
createVFSFile(VolumeReference volRef,
java.lang.String filename)
Creates a file on the specified VFS volume. |
void |
deleteDatabase(java.lang.String dbName)
Deletes the specified database. |
void |
deleteRecord(byte dbID,
byte flags,
int recordID)
Deletes a record from the remote Palm. |
void |
deleteResource(byte dbID,
byte flags,
int type,
char resourceID)
Deletes the specified resource from the specified Palm database. |
void |
deleteVFSFile(VolumeReference volRef,
java.lang.String filename)
Deletes the specified file from a VFS filesystem. |
DirectoryEntryEnumeration |
enumerateDirectory(FileReference file,
int iterator)
Retrieves an enumeration of the entries in the specified directory. |
VolumeReference[] |
enumerateVFSVolumes()
Enumerates all the VFS volumes available on the system. |
void |
exportDatabaseToVFSFile(VolumeReference volRef,
char cardNum,
int dbID,
java.lang.String filename)
Exports a handheld database to a file on a VFS filesystem. |
DLPFindDBResponse |
findDatabaseByCreator(byte flags,
byte searchFlags,
int type,
int creator)
Finds a database based on its creator information. |
DLPFindDBResponse |
findDatabaseByCreator(byte flags,
byte searchFlags,
java.lang.String type,
java.lang.String creator)
Finds a database based on its creator information. |
DLPFindDBResponse |
findDatabaseByName(byte flags,
byte cardNumber,
java.lang.String dbName)
Finds the specified database by name. |
DLPFindDBResponse |
findDatabaseByOpenHandle(byte flags,
byte dbID)
Finds information on a database using its open database handle. |
void |
formatVFSVolume(MountParameters mountParams)
Formats the specified VFS volume. |
DLPBlock |
getApplicationBlock(byte dbID)
Retrieves the application block for the specified database. |
DLPDatabaseInfo |
getDatabaseInfo(java.lang.String dbName)
Retrieves the Database Info object for a specified database. |
java.util.Vector |
getDatabaseInfoList()
Retrieves a Vector containing the DLPDatabaseInfo objects for every database on the remote Palm. |
java.lang.String |
getDeviceSerialNumber()
Retreives the handhelds serial number. |
DLPExpansionCardInfo |
getExpansionCardInfo(SlotReference slotRef)
Reads the information for the specified expansion card. |
SlotReference[] |
getExpansionSlotEnumeration()
Retrieves a list of the slot reference IDs present on this device. |
java.awt.Frame |
getFrameHandle()
Returns a handle to the main jSyncManager frame. |
int |
getOpenDatabaseInfo(byte dbID)
Returns the number of resources or records in a currently open database. |
java.lang.Object |
getProperty(java.lang.Object key)
Gets a named property from the ConduitHandler. |
int |
getRecordCount(byte dbID)
Deprecated. as of v1.1, this method has been renamed to getOpenDatabaseInfo. |
DLPBlock |
getSortBlock(byte dbID)
Retrieves the Sort Block from the specified database, if one exists. |
DLPStorageInfo |
getStorageInfo()
Deprecated. This method is no longer suggested for use, as it only returns storage information from the beginning of the synchronization process. Please use getStorageInfo(byte) instead. |
DLPStorageInfo |
getStorageInfo(byte card)
Gets the current storage info for the specified memory card. |
DLPSystemInfo |
getSystemInfo()
Retrieves the Palm's system information object. |
DLPUserInfo |
getUserInfo()
Retrieves the user information from the Palm. |
static double |
getVersion()
Returns the version number for this ConduitHandler class. |
java.lang.String |
getVFSDefaultDirectory(VolumeReference volRef,
java.lang.String fileType)
Retrieves the VFS Default Directory. |
java.util.Calendar |
getVFSFileDate(FileReference file,
char dateType)
Retrieves a file date for the specified file. |
int |
getVFSFileSize(FileReference file)
Retrieves the size of the specified file. |
VolumeInfo |
getVFSVolumeInfo(VolumeReference volRef)
Retrieves the volume information for the specified volume. |
java.lang.String |
getVFSVolumeLabel(VolumeReference volRef)
Retrieves the VFS Volume label. |
VolumeSize |
getVFSVolumeSize(VolumeReference volRef)
Retrieves the volume size information for the specified volume. |
boolean |
hasDatabase(java.lang.String dbName)
Checks to see if the Palm has the specified database. |
ImportDBFromVFSFileResponse |
importDatabaseFromVFSFile(VolumeReference volRef,
java.lang.String filename)
Imports a handheld database from a file on a VFS filesystem. |
boolean |
isExpansionCardPresent(SlotReference slotRef)
Tests to see wether a card is present in the specified expansion slot. |
boolean |
isModemSync()
This method is used to determine wether this is a modem or cradle synchronization. |
boolean |
isPopupAllowed()
Used to query wether the jSyncManager has been set to supress popups or not. |
boolean |
isVFSFileAtEOF(FileReference file)
Determines wether or not the given file reference's pointer is at the End Of File (EOF). |
char[] |
makeVFSCustomControlRequest(int fsCreator,
int apiCreator,
char apiSelector,
char[] buffer)
VFS File custom control method. |
void |
moveCategory(byte dbID,
byte to,
byte from)
Moves a category from one ID to another for the specified database. |
void |
openConduit()
Informs the remote Palm that a new jConduit is being opened. |
byte |
openDatabase(java.lang.String dbName,
byte mode)
Opens the specified database in the specified mode. |
FileReference |
openVFSFile(VolumeReference volRef,
char openMode,
java.lang.String pathString)
Opens a VFS file. |
void |
postToLog(java.lang.String s)
Adds a text message to the jSyncManager's synchronization log. |
float |
queryDLPVersion()
Queries the remote Palm's DLP version number. |
int |
queryVFSFileAttributes(FileReference file)
Retrieves the file attributes for the specified file. |
int |
queryVFSFilePosition(FileReference file)
Retrieves the location of the file pointer in the specified VFS file. |
DLPAppPreference |
readAppPreference(byte[] creatorID,
char prefID,
char size,
byte flags)
Reads the specified application preference. |
DLPAppPreference |
readAppPreference(int creatorID,
char prefID,
char size,
byte flags)
Reads the specified application preference. |
DLPAppPreference |
readAppPreference(java.lang.String creatorID,
char prefID,
char size,
byte flags)
Reads the specified application preference. |
DLPDatabase |
readDatabase(java.lang.String dbName)
Reads an entire database from the Palm. |
int |
readFeature(int creator,
char featureNum)
Reads the specified feature from the handheld. |
int |
readFeature(java.lang.String creator,
char featureNum)
Reads the specified feature from the handheld. |
DLPRecord |
readNextModifiedRecord(byte dbID)
Read the next record from the specified database which has it's Modified flag set. |
DLPRecord |
readNextModifiedRecordInCategory(byte dbID,
byte category)
Read the next record from the specified database and category which has it's Modified flag set. |
DLPRecord |
readNextRecordInCategory(byte dbID,
byte category)
Read the next record from the specified database and category. |
DLPRecord |
readRecord(byte dbID,
char index)
Deprecated. this method has been replaced by readRecordByIndex, as it is too easy to incorrectly cast and confuse calls between the overloaded readRecord methods. |
DLPRecord |
readRecord(byte dbID,
int recordID)
Deprecated. this method has been replaced by readRecordByID, as it is too easy to incorrectly cast and confuse calls between the overloaded readRecord methods. |
DLPRecord |
readRecordByID(byte dbID,
int recordID)
Reads the record from the specified database that has the specified record ID. |
DLPRecord |
readRecordByIndex(byte dbID,
char recordIndex)
Reads the record from the specified database that has the specified record index. |
int[] |
readRecordIDList(byte dbID,
byte flags,
char firstRecNum,
char maximumEntries)
Reads the ID list for the records contained within the specified database. |
DLPResource |
readResource(byte dbID,
char resourceIndex)
Deprecated. this method has been replaced by readResourceByIndex, as it is too easy to incorrectly cast and confuse calls between the overloaded readResource methods. |
DLPResource |
readResource(byte dbID,
int type,
char resourceID)
Deprecated. this method has been replaced by readResourceByID, as it is too easy to incorrectly cast and confuse calls between the overloaded readResource methods. |
DLPResource |
readResourceByID(byte dbID,
int type,
char resourceID)
Reads the resource from the specified database that has the specified resource ID. |
DLPResource |
readResourceByIndex(byte dbID,
char resourceIndex)
Reads the resource from the specified database that has the specified resource index. |
byte[] |
readVFSFile(FileReference file,
int numBytes)
Reads the specified number of bytes from a VFS file. |
int |
readVFSFileToStream(FileReference file,
int numBytes,
java.io.OutputStream out)
Reads the specified number of bytes from a VFS file, and outputs it to a stream. |
void |
renameVFSFile(VolumeReference volRef,
java.lang.String oldFilename,
java.lang.String newFilename)
Rennames the specified VFS file to the newly specified name. |
void |
resetRecordIndex(byte dbID)
Resets the readNextModifiedRecord counters back to the beginning of the database. |
void |
resetSyncFlags(byte dbID)
Resets all dirty flags in the specified database, and sorts the last sync time to now. |
void |
resetSystem()
Causes the Palm to require a reboot after synchronization completes. |
void |
resizeVFSFile(FileReference file,
int newSize)
Resizes the specified file to the specified new size in bytes. |
void |
seekVFSFile(FileReference file,
char origin,
int offset)
Seeks to the specified position in the specified VFS file. |
void |
setDatabaseInfo(byte dbID,
char clearFlags,
char setFlags,
char dbVersion,
DLP_Date creationDate,
DLP_Date modifiedDate,
DLP_Date backupDate,
int dbTypeID,
int dbCreator,
java.lang.String dbName)
Sets the specified information for a database. |
static void |
setFrameHandle(java.awt.Frame f)
Sets the Frame handle to use for dialogs. |
void |
setStatus(java.lang.String status)
Displays a text string in the Sync Windows status line. |
void |
setVFSFileAttributes(FileReference file,
int attributes)
Sets the atttributes for the specified file |
void |
setVFSFileDate(FileReference file,
char dateType,
java.util.Calendar newValue)
Sets the specified date for the specified file. |
void |
setVFSVolumeLabel(VolumeReference volRef,
java.lang.String newLabel)
Sets the volume label for the specified VFS Volume. |
void |
startTickles()
Starts the sending of tickle packets. |
void |
stopTickles()
Stops the transmission of tickle packets. |
void |
storeProperty(java.lang.Object key,
java.lang.Object data)
Stores a jConduit property. |
void |
writeApplicationBlock(byte dbID,
byte[] appBlock)
Writes an application block to the remote device. |
void |
writeApplicationBlock(byte dbID,
DLPBlock appBlock)
Writes an application block to the remote device. |
void |
writeAppPreference(int creatorID,
char prefID,
byte flags,
DLPAppPreference preference)
Writes an application preference to the remote device. |
void |
writeDatabase(DLPDatabase dbName)
Write an entire database to the remote device. |
int |
writeRecord(byte dbID,
byte flags,
DLPRecord record)
Writes a record to the remote device. |
int |
writeRecord(byte dbID,
byte flags,
int recordID,
byte attributes,
byte category,
byte[] data)
Writes a record to the remote device. |
void |
writeResource(byte dbID,
DLPResource resource)
Writes a resource to the remote device. |
void |
writeResource(byte dbID,
int type,
char resourceID,
byte[] data)
Writes a resource to the remote device. |
void |
writeSortBlock(byte dbID,
byte[] sortBlock)
Writes an sort block to the remote device. |
void |
writeSortBlock(byte dbID,
DLPBlock sortBlock)
Writes an sort block to the remote device. |
int |
writeVFSFile(FileReference file,
byte[] data)
Write the specified data to a VFS file. |
int |
writeVFSFileFromStream(FileReference file,
java.io.InputStream stream)
Write the specified data stream to a VFS file. |
int |
writeVFSFileFromStream(FileReference file,
java.io.InputStream stream,
int length)
Write the specified data stream to a VFS file. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final double version
public static java.awt.Frame frame
public static final byte READ_ID_LIST_SORT_FLAG
public static final byte WRITE_APP_PREF_BACKUP
| Constructor Detail |
public ConduitHandler(ConduitManager cmanager,
JHotSync jhotsync)
cmanager - a handle to the active instance of ConduitManager.jhotsync - a handle to the active JHotSync object.| Method Detail |
public void addSyncLogEntry(java.lang.String text)
text - the text string to write to the Palm's sync log.
public void cleanupDatabase(byte dbID)
throws ConduitHandlerException,
NotConnectedException
dbID - the handle of an open database to be cleaned up.
ConduitHandlerException - thrown if the underlying DLP protocol layer reports an error.
NotConnectedException - thrown if the connection to the Palm has been or is lost during this method call.
public void closeAllDatabases()
throws ConduitHandlerException,
NotConnectedException
ConduitHandlerException - thrown if the underlying DLP protocol layer reports an error.
NotConnectedException - thrown if the connection to the Palm has been or is lost during this method call.
public void closeDatabase(byte dbID)
throws ConduitHandlerException,
NotConnectedException
dbID - the handle of the open database to be closed.
ConduitHandlerException - thrown if the underlying DLP protocol layer reports an error.
NotConnectedException - thrown if the connection to the Palm has been or is lost during this method call.
public byte createDatabase(java.lang.String creator,
java.lang.String type,
java.lang.String dbName,
char flags,
char version)
throws ConduitHandlerException,
NotConnectedException
creator - the 4 character creator ID for the database being created (if more than 4 characters are present, only the first four will be used).type - the 4 character database type identifier for the database being created (if more than 4 characters are present, only the first four will be used).dbName - the name of the database to create.flags - the database creation flags.version - the version number for the database being created.
ConduitHandlerException - thrown if the underlying DLP protocol layer reports an error.
NotConnectedException - thrown if the connection to the Palm has been or is lost during this method call.
public void deleteDatabase(java.lang.String dbName)
throws ConduitHandlerException,
NotConnectedException
dbName - the name of the database to delete.
ConduitHandlerException - thrown if the underlying DLP protocol layer reports an error.
NotConnectedException - thrown if the connection to the Palm has been or is lost during this method call.
public void deleteRecord(byte dbID,
byte flags,
int recordID)
throws ConduitHandlerException,
NotConnectedException
dbID - the handle to the database containing the record to be deleted.flags - the record deletion flags.recordID - the ID number of the record to be deleted. If you are deleting a complete category (@see DLPRecord#DELETE_ALL_IN_CATEGORY), give the category ID here.
ConduitHandlerException - thrown if the underlying DLP protocol layer reports an error.
NotConnectedException - thrown if the connection to the Palm has been or is lost during this method call.for possible values.
public void deleteResource(byte dbID,
byte flags,
int type,
char resourceID)
throws ConduitHandlerException,
NotConnectedException
dbID - the handle of the open database to delete the specified resource from.flags - the resource flags to use during the deletion.type - the resource type information.resourceID - the ID number of the resource to delete.
ConduitHandlerException - thrown if the underlying DLP protocol layer reports an error.
NotConnectedException - thrown if the connection to the Palm has been or is lost during this method call.
public DLPBlock getApplicationBlock(byte dbID)
throws ConduitHandlerException,
NotConnectedException
dbID - the handle of the open database from which to retrieve the Application Block.
ConduitHandlerException - thrown if the underlying DLP protocol layer reports an error.
NotConnectedException - thrown if the connection to the Palm has been or is lost during this method call.
public DLPDatabaseInfo getDatabaseInfo(java.lang.String dbName)
throws ConduitHandlerException
dbName - the name of the database the retrieve information on.
ConduitHandlerException - thrown if the specified database did not exist at the start of sync.public java.util.Vector getDatabaseInfoList()
DLPDatabaseInfopublic java.awt.Frame getFrameHandle()
public int getOpenDatabaseInfo(byte dbID)
throws ConduitHandlerException,
NotConnectedException
dbID - the handle of the open database to query.
ConduitHandlerException - thrown if the underlying DLP protocol layer reports an error.
NotConnectedException - thrown if the connection to the Palm has been or is lost during this method call.public java.lang.Object getProperty(java.lang.Object key)
key - the key value to retrieve from the property hash.
storeProperty(java.lang.Object, java.lang.Object)
public int getRecordCount(byte dbID)
throws ConduitHandlerException,
NotConnectedException
dbID - the handle of the open database to query.
ConduitHandlerException - thrown if the underlying DLP protocol layer reports an error.
NotConnectedException - thrown if the connection to the Palm has been or is lost during this method call.getOpenDatabaseInfo(byte)
public DLPBlock getSortBlock(byte dbID)
throws ConduitHandlerException,
NotConnectedException
dbID - the handle of the open database from which to retrieve the sort block, if one exists.
ConduitHandlerException - thrown if the underlying DLP protocol layer reports an error.
NotConnectedException - thrown if the connection to the Palm has been or is lost during this method call.public DLPStorageInfo getStorageInfo()
getStorageInfo(byte)
public DLPStorageInfo getStorageInfo(byte card)
throws ConduitHandlerException,
NotConnectedException
card - the card number to query (currently, this should always be set to 0).
ConduitHandlerException - thrown if the underlying DLP protocol layer reports an error.
NotConnectedException - thrown if the connection to the Palm has been or is lost during this method call.public DLPSystemInfo getSystemInfo()
public DLPUserInfo getUserInfo()
public static final double getVersion()
public boolean hasDatabase(java.lang.String dbName)
throws NotConnectedException
dbName - the name of the database to check for existance.
NotConnectedException - thrown if the connection to the Palm has been or is lost during this method call.public boolean isModemSync()
public boolean isPopupAllowed()
public void moveCategory(byte dbID,
byte to,
byte from)
throws ConduitHandlerException,
NotConnectedException
dbID - the handle of the open database in which to move the categories.to - the category ID to move the records to.from - the category ID to move the records from.
ConduitHandlerException - thrown if the underlying DLP protocol layer reports an error.
NotConnectedException - thrown if the connection to the Palm has been or is lost during this method call.
public void openConduit()
throws ConduitHandlerException,
NotConnectedException
ConduitHandlerException - thrown if the underlying DLP protocol layer reports an error.
NotConnectedException - thrown if the connection to the Palm has been or is lost during this method call.
public byte openDatabase(java.lang.String dbName,
byte mode)
throws ConduitHandlerException,
NotConnectedException
dbName - the name of the database to open.mode - the mode in which to open this database (see DLPDatabase for available modes).
ConduitHandlerException - thrown if the underlying DLP protocol layer reports an error.
NotConnectedException - thrown if the connection to the Palm has been or is lost during this method call.DLPDatabasepublic void postToLog(java.lang.String s)
s - a String to add to the jSyncManager synchronization log.setStatus(java.lang.String)public float queryDLPVersion()
public DLPAppPreference readAppPreference(int creatorID,
char prefID,
char size,
byte flags)
throws ConduitHandlerException,
NotConnectedException
creatorID - the app preference creator ID.prefID - the desired preference ID.size - the size in bytes to read.flags - Valid preference flags.
ConduitHandlerException - thrown if the underlying DLP protocol layer reports an error.
NotConnectedException - thrown if the connection to the Palm has been or is lost during this method call.DLPAppPreference
public DLPAppPreference readAppPreference(java.lang.String creatorID,
char prefID,
char size,
byte flags)
throws ConduitHandlerException,
NotConnectedException
creatorID - the app preference creator ID.prefID - the desired preference ID.size - the size in bytes to read.flags - Valid preference flags.
ConduitHandlerException - thrown if the underlying DLP protocol layer reports an error.
NotConnectedException - thrown if the connection to the Palm has been or is lost during this method call.DLPAppPreference
public DLPAppPreference readAppPreference(byte[] creatorID,
char prefID,
char size,
byte flags)
throws ConduitHandlerException,
NotConnectedException
creatorID - the app preference creator ID.prefID - the desired preference ID.size - the size in bytes to read.flags - Valid preference flags.
ConduitHandlerException - thrown if the underlying DLP protocol layer reports an error.
NotConnectedException - thrown if the connection to the Palm has been or is lost during this method call.DLPAppPreference
public DLPDatabase readDatabase(java.lang.String dbName)
throws ConduitHandlerException,
NotConnectedException
dbName - the name of the Database to retrieve.
ConduitHandlerException - thrown if the underlying DLP protocol layer reports an error.
NotConnectedException - thrown if the connection to the Palm has been or is lost during this method call.
public DLPRecord readNextModifiedRecord(byte dbID)
throws ConduitHandlerException,
NotConnectedException
dbID - the ID of the database to read the next modified record from.
ConduitHandlerException - thrown if the underlying DLP protocol layer reports an error.
NotConnectedException - thrown if the connection to the Palm has been or is lost during this method call.
public DLPRecord readNextModifiedRecordInCategory(byte dbID,
byte category)
throws ConduitHandlerException,
NotConnectedException
dbID - the ID of the database to read the next modified record from.category - the category ID to read the record from.
ConduitHandlerException - thrown if the underlying DLP protocol layer reports an error.
NotConnectedException - thrown if the connection to the Palm has been or is lost during this method call.
public DLPRecord readNextRecordInCategory(byte dbID,
byte category)
throws ConduitHandlerException,
NotConnectedException
dbID - the ID of the database to read the next record from.category - the category ID to read the record from.
ConduitHandlerException - thrown if the underlying DLP protocol layer reports an error.
NotConnectedException - thrown if the connection to the Palm has been or is lost during this method call.
public DLPRecord readRecord(byte dbID,
char index)
throws ConduitHandlerException,
NotConnectedException
dbID - the ID of the database to read from.index - the index of the record to be read. This index is a 1-based ordinal denoting the record order within the database.
ConduitHandlerException - thrown if the underlying DLP protocol layer reports an error.
NotConnectedException - thrown if the connection to the Palm has been or is lost during this method call.readRecordByIndex(byte, char)
public DLPRecord readRecord(byte dbID,
int recordID)
throws ConduitHandlerException,
NotConnectedException
dbID - the ID of the database to read from.recordID - the ID number of the record to be read. Record ID nubmers are unique identifiers for each record.
ConduitHandlerException - thrown if the underlying DLP protocol layer reports an error.
NotConnectedException - thrown if the connection to the Palm has been or is lost during this method call.readRecordByID(byte, int)
public DLPRecord readRecordByID(byte dbID,
int recordID)
throws ConduitHandlerException,
NotConnectedException
dbID - the ID of the database to read from.recordID - the ID number of the record to be read. Record ID nubmers are unique identifiers for each record.
ConduitHandlerException - thrown if the underlying DLP protocol layer reports an error.
NotConnectedException - thrown if the connection to the Palm has been or is lost during this method call.
public DLPRecord readRecordByIndex(byte dbID,
char recordIndex)
throws ConduitHandlerException,
NotConnectedException
dbID - the ID of the database to read from.recordIndex - the index of the record to be read. This index is a 1-based ordinal denoting the record order within the database.
ConduitHandlerException - thrown if the underlying DLP protocol layer reports an error.
NotConnectedException - thrown if the connection to the Palm has been or is lost during this method call.
public int[] readRecordIDList(byte dbID,
byte flags,
char firstRecNum,
char maximumEntries)
throws ConduitHandlerException,
NotConnectedException
dbID - the handle to the open database.flags - Set to ConduitHandler.READ_ID_LIST_SORT_FLAG to sort the returned record IDs, or 0 otherwise.firstRecNum - the first record index number to return. If out of bounds,
a ConditHandlerException will be thrown with DLP_Packet.ERR_NOT_FOUND set.maximumEntries - the maximum number of entries to return.
ConduitHandlerException - thrown if the underlying DLP protocol layer reports an error.
NotConnectedException - thrown if the connection to the Palm has been or is lost during this method call.
public DLPResource readResource(byte dbID,
char resourceIndex)
throws ConduitHandlerException,
NotConnectedException
dbID - the ID of the database to read from.resourceIndex - the index of the resource to be read. This index is a 1-based ordinal denoting the resource order within the database.
ConduitHandlerException - thrown if the underlying DLP protocol layer reports an error.
NotConnectedException - thrown if the connection to the Palm has been or is lost during this method call.readResourceByIndex(byte, char)
public DLPResource readResource(byte dbID,
int type,
char resourceID)
throws ConduitHandlerException,
NotConnectedException
dbID - the ID of the database to read from.type - the resource type.resourceID - the ID number of the resource to be read. Resource ID numbers are unique identifiers for each resource.
ConduitHandlerException - thrown if the underlying DLP protocol layer reports an error.
NotConnectedException - thrown if the connection to the Palm has been or is lost during this method call.readResourceByID(byte, int, char)
public DLPResource readResourceByID(byte dbID,
int type,
char resourceID)
throws ConduitHandlerException,
NotConnectedException
dbID - the ID of the database to read from.type - the resource type.resourceID - the ID number of the resource to be read. Resource ID numbers are unique identifiers for each resource.
ConduitHandlerException - thrown if the underlying DLP protocol layer reports an error.
NotConnectedException - thrown if the connection to the Palm has been or is lost during this method call.
public DLPResource readResourceByIndex(byte dbID,
char resourceIndex)
throws ConduitHandlerException,
NotConnectedException
dbID - the ID of the database to read from.resourceIndex - the index of the resource to be read. This index is a 1-based ordinal denoting the resource order within the database.
ConduitHandlerException - thrown if the underlying DLP protocol layer reports an error.
NotConnectedException - thrown if the connection to the Palm has been or is lost during this method call.
public void resetRecordIndex(byte dbID)
throws ConduitHandlerException,
NotConnectedException
dbID - the handle to the database to reset.
ConduitHandlerException - thrown if the underlying DLP protocol layer reports an error.
NotConnectedException - thrown if the connection to the Palm has been or is lost during this method call.
public void resetSyncFlags(byte dbID)
throws ConduitHandlerException,
NotConnectedException
dbID - the handle to the database to reset.
ConduitHandlerException - thrown if the underlying DLP protocol layer reports an error.
NotConnectedException - thrown if the connection to the Palm has been or is lost during this method call.
public void resetSystem()
throws ConduitHandlerException,
NotConnectedException
ConduitHandlerException - thrown if the underlying DLP protocol layer reports an error.
NotConnectedException - thrown if the connection to the Palm has been or is lost during this method call.public static void setFrameHandle(java.awt.Frame f)
f - the Frame object handle.public void setStatus(java.lang.String status)
status - the status String to be displayed.postToLog(java.lang.String)public void startTickles()
stopTickles()public void stopTickles()
startTickles()
public void storeProperty(java.lang.Object key,
java.lang.Object data)
getProperty(java.lang.Object)
public void writeApplicationBlock(byte dbID,
DLPBlock appBlock)
throws ConduitHandlerException,
NotConnectedException
dbID - the handle to an open database to write the app block to.appBlock - the application block (as a DLPBlock object) to write.
ConduitHandlerException - thrown if the underlying DLP protocol layer reports an error.
NotConnectedException - thrown if the connection to the Palm has been or is lost during this method call.
public void writeApplicationBlock(byte dbID,
byte[] appBlock)
throws ConduitHandlerException,
NotConnectedException
dbID - the handle to an open database to write the app block to.appBlock - the application block (as an array of bytes) to write.
ConduitHandlerException - thrown if the underlying DLP protocol layer reports an error.
NotConnectedException - thrown if the connection to the Palm has been or is lost during this method call.
public void writeAppPreference(int creatorID,
char prefID,
byte flags,
DLPAppPreference preference)
throws ConduitHandlerException,
NotConnectedException
creatorID - the desired creator ID.prefID - the desired preference ID.flags - Set to either ConduitHandler.WRITE_APP_PREF_BACKUP to restore a backed up app preference.
Set to 0 otherwise.preference - the preference to write.
jSyncManager.Protocol.DLPFunctionCallException - The exception description.
ConduitHandlerException - thrown if the underlying DLP protocol layer reports an error.
NotConnectedException - thrown if the connection to the Palm has been or is lost during this method call.
public void writeDatabase(DLPDatabase dbName)
throws ConduitHandlerException,
NotConnectedException
dbName - the DLPDatabase object to write.
ConduitHandlerException - thrown if the underlying DLP protocol layer reports an error.
NotConnectedException - thrown if the connection to the Palm has been or is lost during this method call.
public int writeRecord(byte dbID,
byte flags,
int recordID,
byte attributes,
byte category,
byte[] data)
throws ConduitHandlerException,
NotConnectedException
dbID - the open database handle to write to.flags - the record writing flags. See DLPRecord for valid flags.recordID - the ID of the record to be written.
Set to 0 to allow the remote device to assign a suitable ID number.attributes - the record attributes. See DLPRecord for valid attributes.category - the category ID to write to.data - the record data to be written.
ConduitHandlerException - thrown if the underlying DLP protocol layer reports an error.
NotConnectedException - thrown if the connection to the Palm has been or is lost during this method call.DLPRecord
public int writeRecord(byte dbID,
byte flags,
DLPRecord record)
throws ConduitHandlerException,
NotConnectedException
dbID - the open database handle to write to.flags - the record writing flags. See DLPRecord for valid flags.record - the DLPRecord object to write.
ConduitHandlerException - thrown if the underlying DLP protocol layer reports an error.
NotConnectedException - thrown if the connection to the Palm has been or is lost during this method call.DLPRecord
public void writeResource(byte dbID,
int type,
char resourceID,
byte[] data)
throws ConduitHandlerException,
NotConnectedException
dbID - the open database handle to write to.type - the resource type buing written.resourceID - the ID of the resource to be written.
Set to 0 to allow the remote device to assign a suitable ID number.data - the byte array containing the resource data to be written.
ConduitHandlerException - thrown if the underlying DLP protocol layer reports an error.
NotConnectedException - thrown if the connection to the Palm has been or is lost during this method call.DLPResource
public void writeResource(byte dbID,
DLPResource resource)
throws ConduitHandlerException,
NotConnectedException
dbID - the open database handle to write to.resource - the DLPResource object to write.
ConduitHandlerException - thrown if the underlying DLP protocol layer reports an error.
NotConnectedException - thrown if the connection to the Palm has been or is lost during this method call.DLPResource
public void writeSortBlock(byte dbID,
DLPBlock sortBlock)
throws ConduitHandlerException,
NotConnectedException
dbID - the handle to an open database to write the sort block to.sortBlock - the sort block (as a DLPBlock object) to write.
ConduitHandlerException - thrown if the underlying DLP protocol layer reports an error.
NotConnectedException - thrown if the connection to the Palm has been or is lost during this method call.
public void writeSortBlock(byte dbID,
byte[] sortBlock)
throws ConduitHandlerException,
NotConnectedException
dbID - the handle to an open database to write the sort block to.sortBlock - the sort block (as an array of bytes) to write.
ConduitHandlerException - thrown if the underlying DLP protocol layer reports an error.
NotConnectedException - thrown if the connection to the Palm has been or is lost during this method call.
public java.lang.String getDeviceSerialNumber()
throws ConduitHandlerException,
NotConnectedException
ConduitHandlerException - thrown if the underlying DLP protocol layer reports an error.
NotConnectedException - thrown if the connection to the Palm has been or is lost during this method call.
public int readFeature(int creator,
char featureNum)
throws ConduitHandlerException,
NotConnectedException
creator - the creator ID, expressed as an integer.featureNum - the feature number to be read.
ConduitHandlerException - thrown if the underlying DLP protocol layer reports an error.
NotConnectedException - thrown if the connection to the Palm has been or is lost during this method call.
public int readFeature(java.lang.String creator,
char featureNum)
throws ConduitHandlerException,
NotConnectedException
creator - the 4-character creator ID, expressed as a String.featureNum - the feature number to be read.
ConduitHandlerException - thrown if the underlying DLP protocol layer reports an error.
NotConnectedException - thrown if the connection to the Palm has been or is lost during this method call.
public FileReference openVFSFile(VolumeReference volRef,
char openMode,
java.lang.String pathString)
throws ConduitHandlerException,
NotConnectedException
volRef - the volume reference to open the file from.openMode - the open mode flags for the file.pathString - the path and filename of the file to open.
ConduitHandlerException - thrown if the underlying DLP protocol layer reports an error.
NotConnectedException - thrown if the connection to the Palm has been or is lost during this method call.
public void setDatabaseInfo(byte dbID,
char clearFlags,
char setFlags,
char dbVersion,
DLP_Date creationDate,
DLP_Date modifiedDate,
DLP_Date backupDate,
int dbTypeID,
int dbCreator,
java.lang.String dbName)
throws ConduitHandlerException,
NotConnectedException
dbID - the database ID handle of the database to modify.clearFlags - a set of flags to denote which fields should be cleared.setFlags - a set of flags to denote which flags should be set.dbVersion - the new database version.creationDate - the new creation date for the database.modifiedDate - the new modification date for the database.backupDate - the new backup date for the database.dbTypeID - the databases new type ID.dbCreator - the new creator for the database.dbName - the new name for the database.
ConduitHandlerException - thrown if the underlying DLP protocol layer reports an error.
NotConnectedException - thrown if the connection to the Palm has been or is lost during this method call.
public DLPFindDBResponse findDatabaseByName(byte flags,
byte cardNumber,
java.lang.String dbName)
throws ConduitHandlerException,
NotConnectedException
flags - the search flags to use.cardNumber - the card number to search on.dbName - the name of the database to find.
ConduitHandlerException - thrown if the underlying DLP protocol layer reports an error.
NotConnectedException - thrown if the connection to the Palm has been or is lost during this method call.
public DLPFindDBResponse findDatabaseByOpenHandle(byte flags,
byte dbID)
throws ConduitHandlerException,
NotConnectedException
flags - the search flags to use.dbID - the open database handle to query.
ConduitHandlerException - thrown if the underlying DLP protocol layer reports an error.
NotConnectedException - thrown if the connection to the Palm has been or is lost during this method call.
public DLPFindDBResponse findDatabaseByCreator(byte flags,
byte searchFlags,
int type,
int creator)
throws ConduitHandlerException,
NotConnectedException
flags - the search flags to use.searchFlags - the search flags to use.type - the type information for the database to find.creator - the creator ID of the database to find.
ConduitHandlerException - thrown if the underlying DLP protocol layer reports an error.
NotConnectedException - thrown if the connection to the Palm has been or is lost during this method call.
public DLPFindDBResponse findDatabaseByCreator(byte flags,
byte searchFlags,
java.lang.String type,
java.lang.String creator)
throws ConduitHandlerException,
NotConnectedException
flags - the search flags to use.searchFlags - the search flags to use.type - the type information for the database to find.creator - the creator ID of the database to find.
ConduitHandlerException - thrown if the underlying DLP protocol layer reports an error.
NotConnectedException - thrown if the connection to the Palm has been or is lost during this method call.
public SlotReference[] getExpansionSlotEnumeration()
throws ConduitHandlerException,
NotConnectedException
ConduitHandlerException - thrown if the underlying DLP protocol layer reports an error.
NotConnectedException - thrown if the connection to the Palm has been or is lost during this method call.
public boolean isExpansionCardPresent(SlotReference slotRef)
throws ConduitHandlerException,
NotConnectedException
slotRef - the expansion slot reference to test.
ConduitHandlerException - thrown if the underlying DLP protocol layer reports an error.
NotConnectedException - thrown if the connection to the Palm has been or is lost during this method call.
public DLPExpansionCardInfo getExpansionCardInfo(SlotReference slotRef)
throws ConduitHandlerException,
NotConnectedException
slotRef - the expansion slot reference to query.
ConduitHandlerException - thrown if the underlying DLP protocol layer reports an error.
NotConnectedException - thrown if the connection to the Palm has been or is lost during this method call.
public char[] makeVFSCustomControlRequest(int fsCreator,
int apiCreator,
char apiSelector,
char[] buffer)
throws ConduitHandlerException,
NotConnectedException
fsCreator - the fsCreator value.apiCreator - the apiCreator value.apiSelector - the API Selectorbuffer - the data to transmit with this request.
ConduitHandlerException - thrown if the underlying DLP protocol layer reports an error.
NotConnectedException - if we're not connected, or the connection is lost during processing.
public java.lang.String getVFSDefaultDirectory(VolumeReference volRef,
java.lang.String fileType)
throws ConduitHandlerException,
NotConnectedException
volRef - the volume reference number of the volume to query.fileType - a String containing the file type information.
ConduitHandlerException - thrown if the underlying DLP protocol layer reports an error.
NotConnectedException - if we're not connected, or the connection is lost during processing.
public void createVFSFile(VolumeReference volRef,
java.lang.String filename)
throws ConduitHandlerException,
NotConnectedException
volRef - the volume reference number of the volume to query.filename - a String containing the files path and filename.
ConduitHandlerException - thrown if the underlying DLP protocol layer reports an error.
NotConnectedException - if we're not connected, or the connection is lost during processing.
public void closeVFSFile(FileReference file)
throws ConduitHandlerException,
NotConnectedException
file - the file reference of the file to close.
ConduitHandlerException - thrown if the underlying DLP protocol layer reports an error.
NotConnectedException - if we're not connected, or the connection is lost during processing.
public ImportDBFromVFSFileResponse importDatabaseFromVFSFile(VolumeReference volRef,
java.lang.String filename)
throws ConduitHandlerException,
NotConnectedException
volRef - the volume reference number of the volume to query.filename - a String containing the files path and filename.
ConduitHandlerException - thrown if the underlying DLP protocol layer reports an error.
NotConnectedException - if we're not connected, or the connection is lost during processing.
public void exportDatabaseToVFSFile(VolumeReference volRef,
char cardNum,
int dbID,
java.lang.String filename)
throws ConduitHandlerException,
NotConnectedException
volRef - the volume reference number of the volume to query.cardNum - the card number the database resides on.dbID - the databases ID number.filename - a String containing the files path and filename.
ConduitHandlerException - thrown if the underlying DLP protocol layer reports an error.
NotConnectedException - if we're not connected, or the connection is lost during processing.
public void deleteVFSFile(VolumeReference volRef,
java.lang.String filename)
throws ConduitHandlerException,
NotConnectedException
volRef - the volume reference number of the volume to delete from.filename - a String containing the files path and filename.
ConduitHandlerException - thrown if the underlying DLP protocol layer reports an error.
NotConnectedException - if we're not connected, or the connection is lost during processing.
public void renameVFSFile(VolumeReference volRef,
java.lang.String oldFilename,
java.lang.String newFilename)
throws ConduitHandlerException,
NotConnectedException
volRef - the volume reference number of the volume to delete from.oldFilename - a String containing the name of the file to be renamed.newFilename - a String containing the new name for the file.
ConduitHandlerException - thrown if the underlying DLP protocol layer reports an error.
NotConnectedException - if we're not connected, or the connection is lost during processing.
public int queryVFSFilePosition(FileReference file)
throws ConduitHandlerException,
NotConnectedException
file - the file reference of the file to query.
ConduitHandlerException - thrown if the underlying DLP protocol layer reports an error.
NotConnectedException - if we're not connected, or the connection is lost during processing.
public void resizeVFSFile(FileReference file,
int newSize)
throws ConduitHandlerException,
NotConnectedException
file - the file reference of the file to resize.newSize - the new size of the file.
ConduitHandlerException - thrown if the underlying DLP protocol layer reports an error.
NotConnectedException - if we're not connected, or the connection is lost during processing.
public int queryVFSFileAttributes(FileReference file)
throws ConduitHandlerException,
NotConnectedException
file - the file reference of the file to query.
ConduitHandlerException - thrown if the underlying DLP protocol layer reports an error.
NotConnectedException - if we're not connected, or the connection is lost during processing.
public void setVFSFileAttributes(FileReference file,
int attributes)
throws ConduitHandlerException,
NotConnectedException
file - the file reference of the file to set the attributes for.attributes - the new file attributes bitmap.
ConduitHandlerException - thrown if the underlying DLP protocol layer reports an error.
NotConnectedException - if we're not connected, or the connection is lost during processing.
public int getVFSFileSize(FileReference file)
throws ConduitHandlerException,
NotConnectedException
file - the file reference of the file to query.
ConduitHandlerException - thrown if the underlying DLP protocol layer reports an error.
NotConnectedException - if we're not connected, or the connection is lost during processing.
public void createVFSDirectory(VolumeReference volRef,
java.lang.String pathname)
throws ConduitHandlerException,
NotConnectedException
volRef - the volume reference number of the volume to create the directory onto.pathname - a String containing the directory's path.
ConduitHandlerException - thrown if the underlying DLP protocol layer reports an error.
NotConnectedException - if we're not connected, or the connection is lost during processing.
public VolumeReference[] enumerateVFSVolumes()
throws ConduitHandlerException,
NotConnectedException
ConduitHandlerException - thrown if the underlying DLP protocol layer reports an error.
NotConnectedException - if we're not connected, or the connection is lost during processing.
public java.lang.String getVFSVolumeLabel(VolumeReference volRef)
throws ConduitHandlerException,
NotConnectedException
volRef - the volume reference number of the volume to query.
ConduitHandlerException - thrown if the underlying DLP protocol layer reports an error.
NotConnectedException - if we're not connected, or the connection is lost during processing.
public void setVFSVolumeLabel(VolumeReference volRef,
java.lang.String newLabel)
throws ConduitHandlerException,
NotConnectedException
volRef - the volume reference number of the volume to query.newLabel - the new label to use on the specified volume.
ConduitHandlerException - thrown if the underlying DLP protocol layer reports an error.
NotConnectedException - if we're not connected, or the connection is lost during processing.
public java.util.Calendar getVFSFileDate(FileReference file,
char dateType)
throws ConduitHandlerException,
NotConnectedException
file - the file reference of the file to query.dateType - the date type to return.
ConduitHandlerException - thrown if the underlying DLP protocol layer reports an error.
NotConnectedException - if we're not connected, or the connection is lost during processing.DLP_Date
public void setVFSFileDate(FileReference file,
char dateType,
java.util.Calendar newValue)
throws ConduitHandlerException,
NotConnectedException
file - the file reference of the file to query.dateType - the date type to be set.newValue - the new value for the specified date.
ConduitHandlerException - thrown if the underlying DLP protocol layer reports an error.
NotConnectedException - if we're not connected, or the connection is lost during processing.DLP_Date
public void formatVFSVolume(MountParameters mountParams)
throws ConduitHandlerException,
NotConnectedException
mountParams - the mount parameters to use to do the formatting.
ConduitHandlerException - thrown if the underlying DLP protocol layer reports an error.
NotConnectedException - if we're not connected, or the connection is lost during processing.
public boolean isVFSFileAtEOF(FileReference file)
throws ConduitHandlerException,
NotConnectedException
file - the file reference of the file to query.
ConduitHandlerException - thrown if the underlying DLP protocol layer reports an error.
NotConnectedException - if we're not connected, or the connection is lost during processing.
public byte[] readVFSFile(FileReference file,
int numBytes)
throws ConduitHandlerException,
NotConnectedException
file - the file reference to read from.numBytes - the number of bytes to be read.
ConduitHandlerException - thrown if the underlying DLP protocol layer reports an error.
NotConnectedException - if we're not connected, or the connection is lost during processing.
public int readVFSFileToStream(FileReference file,
int numBytes,
java.io.OutputStream out)
throws ConduitHandlerException,
NotConnectedException
file - the file reference to read from.numBytes - the number of bytes to be read.out - the OutputStream object to write the data to.
ConduitHandlerException - thrown if the underlying DLP protocol layer reports an error.
NotConnectedException - if we're not connected, or the connection is lost during processing.
public int writeVFSFile(FileReference file,
byte[] data)
throws ConduitHandlerException,
NotConnectedException
file - the file reference to write to.data - the data to be written.
ConduitHandlerException - thrown if the underlying DLP protocol layer reports an error.
NotConnectedException - if we're not connected, or the connection is lost during processing.
public void seekVFSFile(FileReference file,
char origin,
int offset)
throws ConduitHandlerException,
NotConnectedException
file - the file reference to seek in.origin - the location to seek from.offset - the offset to seek to (may be negative).
ConduitHandlerException - thrown if the underlying DLP protocol layer reports an error.
NotConnectedException - if we're not connected, or the connection is lost during processing.FileReference.SEEK_ORIGIN_BEGINNING,
FileReference.SEEK_ORIGIN_CURRENT_POSITION,
FileReference.SEEK_ORIGIN_END
public int writeVFSFileFromStream(FileReference file,
java.io.InputStream stream,
int length)
throws ConduitHandlerException,
NotConnectedException
file - the file reference to write to.stream - the data stream to be written from.length - the number of bytes to be written.
ConduitHandlerException - thrown if the underlying DLP protocol layer reports an error.
NotConnectedException - if we're not connected, or the connection is lost during processing.
public DirectoryEntryEnumeration enumerateDirectory(FileReference file,
int iterator)
throws ConduitHandlerException,
NotConnectedException
file - the file reference of the directory to enumerate.iterator - the directory entry iterator (pass 0 to start the enumeration).
ConduitHandlerException - thrown if the underlying DLP protocol layer reports an error.
NotConnectedException - if we're not connected, or the connection is lost during processing.
public VolumeInfo getVFSVolumeInfo(VolumeReference volRef)
throws ConduitHandlerException,
NotConnectedException
volRef - the volume reference to query.
ConduitHandlerException - thrown if the underlying DLP protocol layer reports an error.
NotConnectedException - if we're not connected, or the connection is lost during processing.
public VolumeSize getVFSVolumeSize(VolumeReference volRef)
throws ConduitHandlerException,
NotConnectedException
volRef - the volume reference to query.
ConduitHandlerException - thrown if the underlying DLP protocol layer reports an error.
NotConnectedException - if we're not connected, or the connection is lost during processing.
public int writeVFSFileFromStream(FileReference file,
java.io.InputStream stream)
throws ConduitHandlerException,
NotConnectedException,
java.io.IOException
file - the file reference to write to.stream - the data stream to be written from.
ConduitHandlerException - thrown if the underlying DLP protocol layer reports an error.
NotConnectedException - if we're not connected, or the connection is lost during processing.
java.io.IOException
|
jSyncManager | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||