public class ResourceUtils
extends java.lang.Object
Resource| Constructor and Description |
|---|
ResourceUtils() |
| Modifier and Type | Method and Description |
|---|---|
static java.io.InputStream |
getResourceAsStream(java.lang.Object object,
Resource resource)
Get the InputStream for this resource.
|
static java.net.URL |
getResourceAsURL(java.lang.Object object,
Resource resource)
Get the URL for this resource.
|
public static java.io.InputStream getResourceAsStream(java.lang.Object object,
Resource resource)
object - The object to grab the Classloader from.
This parameter is quite important from a
visibility of resources standpoint as the
hierarchy of Classloaders plays a role.resource - The resource to load.Resource,
getResourceAsURL(Object,Resource),
InputStreampublic static java.net.URL getResourceAsURL(java.lang.Object object,
Resource resource)
object - The object to grab the Classloader from.
This parameter is quite important from a
visibility of resources standpoint as the
hierarchy of Classloaders plays a role.resource - The resource to load.Resource,
getResourceAsStream(Object,Resource)Copyright © 2020 Confluent, Inc.. All Rights Reserved.