@NotThreadSafe public class CSSURI extends Object implements ICSSWriteable, ICSSSourceLocationAware
setURI(String).| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
String |
getAsCSSString(ICSSWriterSettings aSettings,
int nIndentLevel)
Get the contents of this object as a serialized CSS string for writing to
an output.
|
CSSDataURL |
getAsDataURL()
Try to convert the contained URI to a Data URL object.
|
CSSSourceLocation |
getSourceLocation() |
String |
getURI() |
int |
hashCode() |
boolean |
isDataURL()
Check if this URI is a data URL (starting with "data:")
|
void |
setSourceLocation(CSSSourceLocation aSourceLocation)
Set the source location of the object, determined while parsing.
|
CSSURI |
setURI(String sURI)
Set the URI string of this object.
|
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitgetAsCSSString, getAsCSSString@Nonnull public final String getURI()
@Nonnull public final CSSURI setURI(@Nonnull String sURI)
sURI - The URI to be set. May not be null but may be empty
(even though an empty URL usually does not make sense).public boolean isDataURL()
true if the URI is a data URL, false
otherwise.@Nullable public CSSDataURL getAsDataURL()
null if conversion to a data URL failed, the
CSSDataURL object otherwise.@Nonnull @Nonempty public String getAsCSSString(@Nonnull ICSSWriterSettings aSettings, @Nonnegative int nIndentLevel)
ICSSWriteablegetAsCSSString in interface ICSSWriteableaSettings - The settings to be used to format the output. May not be
null.nIndentLevel - The current indentation levelnull.@Nullable public final CSSSourceLocation getSourceLocation()
getSourceLocation in interface ICSSSourceLocationAwarenull if an object was not read but manually
created.public final void setSourceLocation(@Nullable CSSSourceLocation aSourceLocation)
ICSSSourceLocationAwaresetSourceLocation in interface ICSSSourceLocationAwareaSourceLocation - The source location to use. May be null.Copyright © 2014–2022 Philip Helger. All rights reserved.