Sets the resource ID of the Distribution packet (ZIP) or the a ZIP file matching the
deprecated naming convention. The file should be in the /res/raw folder.

@param rawResId file's resource ID
@return the builder
@see #setZip(Uri)
@see #setZip(String)
975788
public DfuServiceInitiator setZip(@RawRes final int rawResId) {
		return init(null, null, rawResId, DfuBaseService.TYPE_AUTO, DfuBaseService.MIME_TYPE_ZIP);
	}
119267
public void setResourceId(String resourceId) {

        try {
            if (!m_type.isFolder()) {
                m_resourceId = new CmsUUID(resourceId);
            } else {
                m_resourceId = new CmsUUID();
            }
        } catch (Throwable e) {
            setThrowable(e);
        }
    }
195037
@Override
	public void setGzipResourcesModeOn(boolean gzipResourcesModeOn) {
		configProperties.setProperty(JawrConfig.JAWR_GZIP_ON, Boolean.toString(gzipResourcesModeOn));
	}
1094586
public static String readTextFile(Context context, int resId) {
		InputStream inputStream = context.getResources().openRawResource(resId);
		
		return readText(inputStream);
	}
761299
private void setNameSpaceID(File storage, String nsid)
      throws InconsistentFSStateException {
    if (nsid == null || nsid.equals("")) {
      throw new InconsistentFSStateException(storage, "file "
          + STORAGE_FILE_VERSION + " is invalid.");
    }
    int newNsId = Integer.parseInt(nsid);
    if (namespaceID > 0 && namespaceID != newNsId) {
      throw new InconsistentFSStateException(storage,
          "Unexepcted namespaceID " + nsid + " . Expected " + namespaceID);
    }
    namespaceID = newNsId;
  }
764440
public static String relativePathFromResourceId(String id) {
        if (id == null) {
            return null;
        }
        String[] paths = id.split("/providers/" + resourceProviderFromResourceId(id) + "/", 2);
        if (paths.length == 1) {
            return "";
        } else {
            return paths[1];
        }
    }
915539
public static TagLib loadFromFile(Resource res, Identification id) throws TagLibException {

	// Read in XML
	TagLib lib = TagLibFactory.getHashLib(FunctionLibFactory.id(res));
	if (lib == null) {
	    lib = new TagLibFactory(null, res, id).getLib();
	    TagLibFactory.hashLib.put(FunctionLibFactory.id(res), lib);
	}
	lib.setSource(res.toString());
	return lib;
    }
347771
public void setResourceId(String resourceId) {

        try {
            if (!m_resourceBuilder.isFolder()) {
                m_resourceBuilder.setResourceId(new CmsUUID(resourceId));
            } else {
                m_resourceBuilder.setResourceId(new CmsUUID());
            }
        } catch (Throwable e) {
            setThrowable(e);
        }
    }
43215
public void setLogicalResourceIds(java.util.Collection<String> logicalResourceIds) {
        if (logicalResourceIds == null) {
            this.logicalResourceIds = null;
            return;
        }

        this.logicalResourceIds = new com.amazonaws.internal.SdkInternalList<String>(logicalResourceIds);
    }
839927
public static String id(Resource res) {
	String str = ResourceUtil.getCanonicalPathEL(res) + "|" + res.length() + "|" + res.lastModified();
	try {
	    return Hash.md5(str);
	}
	catch (NoSuchAlgorithmException e) {
	    return Caster.toString(HashUtil.create64BitHash(str));
	}
    }
150496
public void setColorSchemeResources(int... colorResIds) {
        final Resources res = getResources();
        int[] colorRes = new int[colorResIds.length];
        for (int i = 0; i < colorResIds.length; i++) {
            colorRes[i] = res.getColor(colorResIds[i]);
        }
        setColorSchemeColors(colorRes);
    }
956626
public void setResourceAwsEc2InstanceImageId(java.util.Collection<StringFilter> resourceAwsEc2InstanceImageId) {
        if (resourceAwsEc2InstanceImageId == null) {
            this.resourceAwsEc2InstanceImageId = null;
            return;
        }

        this.resourceAwsEc2InstanceImageId = new java.util.ArrayList<StringFilter>(resourceAwsEc2InstanceImageId);
    }
419500
@NonNull
  public RequestCreator load(@DrawableRes int resourceId) {
    if (resourceId == 0) {
      throw new IllegalArgumentException("Resource ID must not be zero.");
    }
    return new RequestCreator(this, null, resourceId);
  }
936148
private InputStream openResource(String name) throws IOException {
        if (mAppContext == null) {
            throw new RuntimeException("Need to call JodaTimeAndroid.init() before using joda-time-android");
        }

        String resName = ResUtils.getTzResource(name);
        int resId = ResUtils.getIdentifier(R.raw.class, resName);

        if (resId == 0) {
            throw new IOException("Resource not found: \"" + name + "\" (resName: \"" + resName + "\")");
        }

        InputStream in = mAppContext.getResources().openRawResource(resId);

        return in;
    }
1097407
public static String resourceTypeFromResourceId(String id) {
        return (id != null) ? ResourceId.fromString(id).resourceType() : null;
    }
1210226
protected ByteSource stream(final String resourceId) {
        return new ByteSource() {
            @Override
            public InputStream openStream() throws IOException {
                return loader.getResource(resourceId).getInputStream();
            }
        };
    }
759635
public static String getResourceLocation(String resourceId)
	{
		Resource resource = getResource(resourceId);
    	return resource.getDataLocation();
	}