scopes = SLPUtil.parseScopes(scopeStr);
scopes = SLPUtil.stringToVector(scopeStr);
    public void fromInputStream(SLPInputStream stream) throws ServiceLocationException {        super.fromInputStream(stream);        int len;        try {            urlEntry = new URLEntry();            urlEntry.fromInputStream(stream);            len = stream.readShort(); // service type length.            serviceType = stream.readString(len);            len = stream.readShort(); // scope-list length            scopeStr = stream.readString(len); // scope list            len = stream.readShort(); // attr-list lenght            attributeStr = stream.readString(len);            int numAuths = stream.readByte(); // # auth blocks            for(int i=0; i<numAuths; i++) {                AuthBlock b = new AuthBlock();                b.fromInputStream(stream);                attrAuths.add(b);            }            if(numAuths != 0) {                // auth blocks currently not supported...                throw new ServiceLocationException(ServiceLocationException.AUTHENTICATION_FAILED);            }        }catch(IOException e) {            throw new ServiceLocationException(ServiceLocationException.PARSE_ERROR);        }                // create scope vector.        if(!scopeStr.equals("")) {            scopes = SLPUtil.parseScopes(scopeStr);        }                // create attribute vector...        if(!attributeStr.equals("")) {            attributes = SLPUtil.parseAttributes(attributeStr);        }    }