|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SyncConverter
The SyncConverter
is used to convert data from object to serialized form.
It serializes a SyncObject
to produces valid synchronization data
and, conversely processes synchronization data to produce a SyncObject
.
In order to be recognized by the BlackBerry desktop software, data must
be in the format described in ConverterUtilities
.
ConverterUtilities
,
SyncObject
Method Summary | ||
---|---|---|
|
boolean |
convert(SyncObject object,
DataBuffer buffer,
int version)
Converts a SyncObject into synchronization data. |
|
SyncObject |
convert(DataBuffer data,
int version,
int UID)
Extracts a SyncObject from the synchronization data. |
Method Detail |
---|
boolean convert(SyncObject object, DataBuffer buffer, int version)
SyncObject
into synchronization data.
object
- The SyncObject
to be converted.buffer
- The buffer into which the data will be placed.
This buffer should not be rewound as it may already contain
other data.version
- The version number specified with the data.
true
if the object was converted successfully;
false
otherwise.ConverterUtilities
SyncObject convert(DataBuffer data, int version, int UID)
SyncObject
from the synchronization data.
data
- The DataBuffer
containing only the synchronization data.
This buffer may be rewound as it will contain only the data
associated with the SyncObject
in question.version
- The version number specified with the data.uid
- The unique ID to be assigned to the object. If this unique
ID is 0
, the SyncObject
must be assigned a unique ID
as if it were created on the device.
SyncObject
obtained from the synchronization data,
or null
if this conversion was unsuccessful.ConverterUtilities
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright 1999-2011 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Java is a trademark of Oracle America Inc. in the US and other countries.
Legal