public class Resource extends Object
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() |
boolean |
isNested() |
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.Copyright © 2020. All rights reserved.