com.intel.bluetooth.obex
Class BlueCoveOBEX

java.lang.Object
  extended by com.intel.bluetooth.obex.BlueCoveOBEX

public abstract class BlueCoveOBEX
extends Object

Allow access to BlueCove OBEX internals. Non JSR-82.

PUBLIC JSR-82 extension


Method Summary
static int getPacketSize(Connection c)
          Once OBEX connection is made this will return negotiated MTU value.
static String obexResponseCodes(int responseCode)
          ConvertOBEX SUCCESS response code to human readable string, useful for debugging applications.
static void setPacketSize(Connection c, int mtu)
          Allows to change the MTU before calling clientSession.connect(headers).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getPacketSize

public static int getPacketSize(Connection c)
Once OBEX connection is made this will return negotiated MTU value.

Returns:
the connection mtu

setPacketSize

public static void setPacketSize(Connection c,
                                 int mtu)
                          throws IOException
Allows to change the MTU before calling clientSession.connect(headers). Alternative is to use java system property "bluecove.obex.mtu" to define the global value.

Parameters:
c - the OBEX connection
mtu -
Throws:
IOException

obexResponseCodes

public static String obexResponseCodes(int responseCode)
ConvertOBEX SUCCESS response code to human readable string, useful for debugging applications.

Parameters:
responseCode -
Returns:
String representation of javax.obex.ResponseCodes


JSR-82 Javadocs Apache License, Version 2.0 Copyright © 2001-2008 Motorola, Inc. ALL RIGHTS RESERVED.
BlueCove Javadocs
Apache License, Version 2.0 Copyright © 2004-2008 BlueCove Team.