public final class ClassResource extends Object implements Resource
Class resource.| Constructor and Description |
|---|
ClassResource(Class<?> clazz,
String path)
Constructs new
ClassResource. |
ClassResource(String className,
String path)
Constructs new
ClassResource. |
| Modifier and Type | Method and Description |
|---|---|
String |
getClassName()
Returns name of the
Class relative to which resource is located. |
InputStream |
getInputStream()
Returns new
InputStream for this Resource. |
String |
getPath()
Returns resource path near
Class. |
public ClassResource(@NotNull Class<?> clazz, @NotNull String path)
ClassResource.@NotNull public String getClassName()
Class relative to which resource is located.Class relative to which resource is located@NotNull public String getPath()
Class.Class@NotNull public InputStream getInputStream()
ResourceInputStream for this Resource.getInputStream in interface ResourceInputStream for this ResourceCopyright © 2020. All rights reserved.