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);