code: @SuppressWarnings("WeakerAccess")
     public static SVG  getFromResource(Resources resources, int resourceId) throws SVGParseException
     {
        SVGParser    parser = new SVGParser();
        InputStream  is = resources.openRawResource(resourceId);
        try {
           return parser.parse(is, enableInternalEntities);
        } finally {
           try {
             is.close();
           } catch (IOException e) {
             // Do nothing
           }
        }
     }
docs: Read and parse an SVG from the given resource location.
  
  @param resources the set of Resources in which to locate the file.
  @param resourceId the resource identifier of the SVG document.
  @return an SVG instance on which you can call one of the render methods.
  @throws SVGParseException if there is an error parsing the document.
  @since 1.2.1