public final class CSSUtilities extends Object
| Constructor and Description |
|---|
CSSUtilities() |
| Modifier and Type | Method and Description |
|---|---|
static void |
main(String[] args)
Main method is used by the build process to write out the default CSS stylesheet.
|
static Properties |
readBuiltinInlineCSSProperties()
Reads in the default CSS Properties file, which is packaged within SnuggleTeX itself.
|
static Properties |
readInlineCSSProperties(DOMOutputOptions options)
Reads in the custom CSS
Properties Object specified by the given
DOMOutputOptions. |
static String |
writeDefaultStylesheet()
Writes out the "default" CSS stylesheet specified via
readBuiltinInlineCSSProperties(),
returning the result as a String. |
static void |
writeDefaultStylesheet(OutputStream cssOutputStream)
Writes out the "default" CSS stylesheet specified via
readBuiltinInlineCSSProperties(),
saving the results to the given OutputStream. |
static void |
writeStylesheet(DOMOutputOptions options,
OutputStream cssOutputStream)
Writes out the CSS stylesheet specified via the given
DOMOutputOptions Object,
using the default if nothing has been specified, saving the results to the given
OutputStream. |
static String |
writeStylesheet(Properties cssProperties)
Writes out the CSS stylesheet made from the given cssProperties, returning
the result as a String.
|
static void |
writeStylesheet(Properties cssProperties,
OutputStream cssOutputStream)
Writes out the CSS stylesheet made from the given cssProperties,
saving the results to the given
OutputStream. |
static void |
writeStylesheet(Properties cssProperties,
Writer cssOutputWriter)
Writes out the CSS stylesheet made from the given cssProperties,
saving the results to the given
Writer. |
public static void writeStylesheet(DOMOutputOptions options, OutputStream cssOutputStream)
DOMOutputOptions Object,
using the default if nothing has been specified, saving the results to the given
OutputStream.options - cssOutputStream - public static String writeDefaultStylesheet()
readBuiltinInlineCSSProperties(),
returning the result as a String.public static String writeStylesheet(Properties cssProperties)
public static void writeDefaultStylesheet(OutputStream cssOutputStream)
readBuiltinInlineCSSProperties(),
saving the results to the given OutputStream.public static void writeStylesheet(Properties cssProperties, OutputStream cssOutputStream)
OutputStream.public static void writeStylesheet(Properties cssProperties, Writer cssOutputWriter)
Writer.public static Properties readBuiltinInlineCSSProperties()
public static Properties readInlineCSSProperties(DOMOutputOptions options)
Properties Object specified by the given
DOMOutputOptions. If nothing has been supplied, then it reads in the
default CSS Properties via readBuiltinInlineCSSProperties() as a fallback.public static void main(String[] args) throws IOException
args - Array containing 1 argument: the File that the default CSS should be written to.
Any parent directories will be created as required.FileNotFoundExceptionIOExceptionCopyright © 2008–2026 The University of Edinburgh. All rights reserved.