| Package | Description |
|---|---|
| com.helger.css.decl | |
| com.helger.css.decl.visit | |
| com.helger.css.handler | |
| com.helger.css.reader | |
| com.helger.css.tools | |
| com.helger.css.writer |
| Modifier and Type | Method and Description |
|---|---|
CascadingStyleSheet |
CascadingStyleSheet.addImportRule(CSSImportRule aImportRule)
Add a new
@import rule at the end of the @import
rule list. |
CascadingStyleSheet |
CascadingStyleSheet.addImportRule(int nIndex,
CSSImportRule aImportRule)
Add a new
@import rule at a specified index of the
@import rule list. |
CascadingStyleSheet |
CascadingStyleSheet.addNamespaceRule(CSSNamespaceRule aNamespaceRule)
Add a new
@namespace rule at the end of the
@namespace rule list. |
CascadingStyleSheet |
CascadingStyleSheet.addNamespaceRule(int nIndex,
CSSNamespaceRule aNamespaceRule)
Add a new
@namespace rule at the specified index of the
@namespace rule list. |
| Modifier and Type | Method and Description |
|---|---|
static void |
CSSVisitor.visitCSS(CascadingStyleSheet aCSS,
ICSSVisitor aVisitor)
Visit all CSS elements in the order of their declaration. import rules come
first, namespace rules come next and all other top-level rules in the order
of their declaration.
|
static void |
CSSVisitor.visitCSSUrl(CascadingStyleSheet aCSS,
ICSSUrlVisitor aVisitor)
Visit all items that can contain URLs in CSS files.
|
| Modifier and Type | Method and Description |
|---|---|
static CascadingStyleSheet |
CSSHandler.readCascadingStyleSheetFromNode(ECSSVersion eVersion,
CSSNode aNode)
Deprecated.
|
static CascadingStyleSheet |
CSSHandler.readCascadingStyleSheetFromNode(ECSSVersion eVersion,
CSSNode aNode,
ICSSInterpretErrorHandler aErrorHandler)
Create a
CascadingStyleSheet object from a parsed object. |
| Modifier and Type | Method and Description |
|---|---|
static CascadingStyleSheet |
CSSReader.readFromFile(File aFile,
Charset aFallbackCharset,
ECSSVersion eVersion)
Read the CSS from the passed File.
|
static CascadingStyleSheet |
CSSReader.readFromFile(File aFile,
Charset aFallbackCharset,
ECSSVersion eVersion,
ICSSParseErrorHandler aCustomErrorHandler)
Read the CSS from the passed File.
|
static CascadingStyleSheet |
CSSReader.readFromFile(File aFile,
Charset aFallbackCharset,
ECSSVersion eVersion,
ICSSParseErrorHandler aCustomErrorHandler,
ICSSParseExceptionCallback aCustomExceptionHandler)
Read the CSS from the passed File.
|
static CascadingStyleSheet |
CSSReader.readFromFile(File aFile,
Charset aFallbackCharset,
ECSSVersion eVersion,
ICSSParseExceptionCallback aCustomExceptionHandler)
Read the CSS from the passed File.
|
static CascadingStyleSheet |
CSSReader.readFromFile(File aFile,
CSSReaderSettings aSettings)
Read the CSS from the passed File.
|
static CascadingStyleSheet |
CSSReader.readFromReader(com.helger.commons.io.IHasReader aRP,
CSSReaderSettings aSettings)
Read the CSS from the passed
IReaderProvider. |
static CascadingStyleSheet |
CSSReader.readFromReader(com.helger.commons.io.IHasReader aRP,
ECSSVersion eVersion,
ICSSParseErrorHandler aCustomErrorHandler,
ICSSParseExceptionCallback aCustomExceptionHandler)
Read the CSS from the passed
IReaderProvider. |
static CascadingStyleSheet |
CSSReader.readFromStream(com.helger.commons.io.IHasInputStream aISP,
Charset aFallbackCharset,
ECSSVersion eVersion)
Read the CSS from the passed
IHasInputStream. |
static CascadingStyleSheet |
CSSReader.readFromStream(com.helger.commons.io.IHasInputStream aISP,
Charset aFallbackCharset,
ECSSVersion eVersion,
ICSSParseErrorHandler aCustomErrorHandler)
Read the CSS from the passed
IHasInputStream. |
static CascadingStyleSheet |
CSSReader.readFromStream(com.helger.commons.io.IHasInputStream aISP,
Charset aFallbackCharset,
ECSSVersion eVersion,
ICSSParseErrorHandler aCustomErrorHandler,
ICSSParseExceptionCallback aCustomExceptionHandler)
Read the CSS from the passed
IHasInputStream. |
static CascadingStyleSheet |
CSSReader.readFromStream(com.helger.commons.io.IHasInputStream aISP,
Charset aFallbackCharset,
ECSSVersion eVersion,
ICSSParseExceptionCallback aCustomExceptionHandler)
Read the CSS from the passed
IHasInputStream. |
static CascadingStyleSheet |
CSSReader.readFromStream(com.helger.commons.io.IHasInputStream aISP,
CSSReaderSettings aSettings)
Read the CSS from the passed
IHasInputStream. |
static CascadingStyleSheet |
CSSReader.readFromString(String sCSS,
Charset aFallbackCharset,
ECSSVersion eVersion)
Read the CSS from the passed String using a byte stream.
|
static CascadingStyleSheet |
CSSReader.readFromString(String sCSS,
Charset aFallbackCharset,
ECSSVersion eVersion,
ICSSParseErrorHandler aCustomErrorHandler)
Read the CSS from the passed String using a byte stream.
|
static CascadingStyleSheet |
CSSReader.readFromString(String sCSS,
Charset aFallbackCharset,
ECSSVersion eVersion,
ICSSParseErrorHandler aCustomErrorHandler,
ICSSParseExceptionCallback aCustomExceptionHandler)
Read the CSS from the passed String using a byte stream.
|
static CascadingStyleSheet |
CSSReader.readFromString(String sCSS,
Charset aFallbackCharset,
ECSSVersion eVersion,
ICSSParseExceptionCallback aCustomExceptionHandler)
Read the CSS from the passed String using a byte stream.
|
static CascadingStyleSheet |
CSSReader.readFromString(String sCSS,
ECSSVersion eVersion)
Read the CSS from the passed String using a character stream.
|
static CascadingStyleSheet |
CSSReader.readFromString(String sCSS,
ECSSVersion eVersion,
ICSSParseErrorHandler aCustomErrorHandler)
Read the CSS from the passed String using a character stream.
|
static CascadingStyleSheet |
CSSReader.readFromString(String sCSS,
ECSSVersion eVersion,
ICSSParseErrorHandler aCustomErrorHandler,
ICSSParseExceptionCallback aCustomExceptionHandler)
Read the CSS from the passed String using a character stream.
|
static CascadingStyleSheet |
CSSReader.readFromString(String sCSS,
ECSSVersion eVersion,
ICSSParseExceptionCallback aCustomExceptionHandler)
Read the CSS from the passed String using a character stream.
|
static CascadingStyleSheet |
CSSReader.readFromStringReader(String sCSS,
CSSReaderSettings aSettings)
Read the CSS from the passed String using a character stream.
|
static CascadingStyleSheet |
CSSReader.readFromStringStream(String sCSS,
CSSReaderSettings aSettings)
Read the CSS from the passed String using a byte stream.
|
| Modifier and Type | Method and Description |
|---|---|
static CascadingStyleSheet |
MediaQueryTools.getWrappedInMediaQuery(CascadingStyleSheet aCSS,
CSSMediaQuery aMediaQuery,
boolean bAllowNestedMediaQueries)
Get the CSS wrapped in the specified media query.
|
static CascadingStyleSheet |
MediaQueryTools.getWrappedInMediaQuery(CascadingStyleSheet aCSS,
Iterable<? extends CSSMediaQuery> aMediaQueries,
boolean bAllowNestedMediaQueries)
Get the CSS wrapped in the specified media query.
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
MediaQueryTools.canWrapInMediaQuery(CascadingStyleSheet aCSS,
boolean bAllowNestedMediaQueries)
Check if the passed CSS can be wrapped in an external media rule.
|
static CascadingStyleSheet |
MediaQueryTools.getWrappedInMediaQuery(CascadingStyleSheet aCSS,
CSSMediaQuery aMediaQuery,
boolean bAllowNestedMediaQueries)
Get the CSS wrapped in the specified media query.
|
static CascadingStyleSheet |
MediaQueryTools.getWrappedInMediaQuery(CascadingStyleSheet aCSS,
Iterable<? extends CSSMediaQuery> aMediaQueries,
boolean bAllowNestedMediaQueries)
Get the CSS wrapped in the specified media query.
|
| Modifier and Type | Method and Description |
|---|---|
String |
CSSWriter.getCSSAsString(CascadingStyleSheet aCSS)
Create the CSS without a specific charset.
|
void |
CSSWriter.writeCSS(CascadingStyleSheet aCSS,
Writer aWriter)
Write the CSS content to the passed writer.
|
Copyright © 2014–2018 Philip Helger. All rights reserved.