public class Resource extends Object implements Serializable
Represents HTML resource such as font, style, image or graphics.
Constructor and Description |
---|
Resource(String fileName,
boolean nested)
Creates new instance of
Resource class. |
Modifier and Type | Method and Description |
---|---|
String |
getFileName()
The resource file name.
|
boolean |
isNested()
Indicates whether resource resides inside another resource, e.g.
|
String |
toString()
Returns a string that represents the current object.
|
public Resource(String fileName, boolean nested)
Creates new instance of Resource
class.
fileName
- Resource file name.nested
- Indicates whether resource resides inside another resource, e.g. font resource that resides in CSS or SVG resource.IllegalArgumentException
- Thrown when fileName
is null or empty.public final String getFileName()
public final boolean isNested()