String s[] = serviceTypesStr.split(","); for(int i=0; i<s.length; i++) { serviceTypes.add(s[i]); }
serviceTypes = SLPUtil.stringToVector(serviceTypesStr);
    public void fromInputStream(SLPInputStream stream) throws ServiceLocationException {        super.fromInputStream(stream);        try {            errorCode = stream.readShort(); // error code            int len = stream.readShort(); // length of srvtype list            serviceTypesStr = stream.readString(len); // service type list.        }catch(IOException ioe) {            throw new ServiceLocationException(ServiceLocationException.PARSE_ERROR);        }                // create service type vector.        String s[] = serviceTypesStr.split(",");        for(int i=0; i<s.length; i++) {            serviceTypes.add(s[i]);        }    }