FileDocCategorySizeDatePackage
BluetoothMasRequestGetFolderListing.javaAPI DocAndroid 5.1 API2264Thu Mar 12 22:22:50 GMT 2015android.bluetooth.client.map

BluetoothMasRequestGetFolderListing

public final class BluetoothMasRequestGetFolderListing extends BluetoothMasRequest

Fields Summary
private static final String
TYPE
private BluetoothMapFolderListing
mResponse
Constructors Summary
public BluetoothMasRequestGetFolderListing(int maxListCount, int listStartOffset)


         

        if (maxListCount < 0 || maxListCount > 65535) {
            throw new IllegalArgumentException("maxListCount should be [0..65535]");
        }

        if (listStartOffset < 0 || listStartOffset > 65535) {
            throw new IllegalArgumentException("listStartOffset should be [0..65535]");
        }

        mHeaderSet.setHeader(HeaderSet.TYPE, TYPE);

        ObexAppParameters oap = new ObexAppParameters();

        if (maxListCount > 0) {
            oap.add(OAP_TAGID_MAX_LIST_COUNT, (short) maxListCount);
        }

        if (listStartOffset > 0) {
            oap.add(OAP_TAGID_START_OFFSET, (short) listStartOffset);
        }

        oap.addToHeaderSet(mHeaderSet);
    
Methods Summary
public voidexecute(javax.obex.ClientSession session)

        executeGet(session);
    
public java.util.ArrayListgetList()

        if (mResponse == null) {
            return null;
        }

        return mResponse.getList();
    
protected voidreadResponse(java.io.InputStream stream)

        mResponse = new BluetoothMapFolderListing(stream);