Java Reference
In-Depth Information
if (! mLastContact.equals(contact)) {
mLastContact = contact;
if (pref.equals(seekPref) && height.equals(seekHeight))
mDisplay.callSerially(new ShowCandidate(contact));
}
}
class OperationHandler extends ServerRequestHandler {
DataInputStream dis = null;
Object syncObject = null;
public OperationHandler( Object inSync) {
syncObject = inSync;
}
public int onPut(Operation op) {
dis = null;
try {
dis = op.openDataInputStream();
} catch (Exception ex) {
// Okay for CREATE_EMPTY op
}
if (dis != null) // Not a CREATE_EMPTY op
{
processRequest(dis);
try {
dis.close();
op.close();
} catch (Exception ex) {
}
dis = null;
synchronized(syncObject) {
syncObject.notify();
}
}
return ResponseCodes.OBEX_HTTP_OK;
}
}
Search WWH ::




Custom Search