public final class ParseUtil extends ScanUtil
Modifier and Type | Method and Description |
---|---|
static int[] |
functionArgumentsToRGB(ValueComponent[] args) |
static String |
loadSource(InputStream in,
String encoding)
Returns the content of specified stylesheet.
|
static String |
loadSource(URL url)
Returns the content of specified stylesheet.
|
static String |
loadSource(URL url,
String encoding)
Returns the content of specified stylesheet.
|
static int[] |
nameToRGB(String name) |
static int[] |
systemNameToRGB(String name) |
isHexDigit, isSpace, lexemeToCaseSensitiveIdent, lexemeToCaseSensitiveQName, lexemeToCaseSensitiveQName, lexemeToFunction, lexemeToHexColor, lexemeToIdent, lexemeToNumber, lexemeToQName, lexemeToQName, lexemeToString, lexemeToUnicodeRange, lexemeToUnit, lexemeToURI, trim, unescape
public static String loadSource(URL url) throws IOException
loadSource(url, null)
.IOException
public static String loadSource(URL url, String encoding) throws IOException
url
- URL of a CSS stylesheetencoding
- character encoding used for the stylesheet.
May be null
, in which case, this encoding is guessed
(using byte order marks) or parsed from the @charset at-rule.IOException
- if an I/O problem occurs
during this operationpublic static String loadSource(InputStream in, String encoding) throws IOException
in
- the source of the CSS stylesheetencoding
- character encoding used for the stylesheet.
May be null
, in which case, this encoding is guessed
(using byte order marks) or parsed from the @charset at-rule.IOException
- if an I/O problem occurs
during this operationpublic static final int[] nameToRGB(String name)
public static final int[] systemNameToRGB(String name)
public static final int[] functionArgumentsToRGB(ValueComponent[] args)