public Hashtable attributes;
public SDPLocalServiceRecord(short serviceClassID) {
this.attributes = new Hashtable();
DataElement serviceClassIDList = new DataElement(DataElement.DATSEQ);
UUID serviceClassUUID = new UUID(serviceClassID);
serviceClassIDList.addElement(new DataElement(DataElement.UUID, new UUID(0x1111)));
attributes.put(new Integer(1), serviceClassIDList);
DataElement protocolDescriptorList = new DataElement(DataElement.DATSEQ);
DataElement l2capDescriptor = new DataElement(DataElement.DATSEQ);
l2capDescriptor.addElement(new DataElement(DataElement.UUID, new UUID(0x0100)));
protocolDescriptorList.addElement(l2capDescriptor);
DataElement rfcommDescriptor = new DataElement(DataElement.DATSEQ);
rfcommDescriptor.addElement(new DataElement(DataElement.UUID, new UUID(0x0003)));
rfcommDescriptor.addElement(new DataElement(DataElement.U_INT_1, 1));
protocolDescriptorList.addElement(rfcommDescriptor);
attributes.put(new Integer(4), protocolDescriptorList);
DataElement browseClassIDList = new DataElement(DataElement.DATSEQ);
UUID browseClassUUID = new UUID(0x1002);
browseClassIDList.addElement(new DataElement(DataElement.UUID, browseClassUUID));
attributes.put(new Integer(5), browseClassIDList);
DataElement languageBaseAttributeIDList = new DataElement(DataElement.DATSEQ);
languageBaseAttributeIDList.addElement(new DataElement(DataElement.U_INT_2, 25966));
languageBaseAttributeIDList.addElement(new DataElement(DataElement.U_INT_2, 106));
languageBaseAttributeIDList.addElement(new DataElement(DataElement.U_INT_2, 256));
attributes.put(new Integer(6), languageBaseAttributeIDList);
DataElement profileDescriptorList = new DataElement(DataElement.DATSEQ);
DataElement profileDescriptor = new DataElement(DataElement.DATSEQ);
profileDescriptor.addElement(new DataElement(DataElement.UUID, new UUID(0x1111)));
profileDescriptor.addElement(new DataElement(DataElement.U_INT_2, 256));
profileDescriptorList.addElement(profileDescriptor);
attributes.put(new Integer(9), profileDescriptorList);
attributes.put(new Integer(256), new DataElement(DataElement.STRING, "Tini Service"));
}