public final class CSSUtilities
extends java.lang.Object
| 构造器和说明 |
|---|
CSSUtilities() |
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
main(java.lang.String[] args)
Main method is used by the build process to write out the default CSS stylesheet.
|
static java.util.Properties |
readBuiltinInlineCSSProperties()
Reads in the default CSS Properties file, which is packaged within SnuggleTeX itself.
|
static java.util.Properties |
readInlineCSSProperties(DOMOutputOptions options)
Reads in the custom CSS
Properties Object specified by the given
DOMOutputOptions. |
static java.lang.String |
writeDefaultStylesheet()
Writes out the "default" CSS stylesheet specified via
readBuiltinInlineCSSProperties(),
returning the result as a String. |
static void |
writeDefaultStylesheet(java.io.OutputStream cssOutputStream)
Writes out the "default" CSS stylesheet specified via
readBuiltinInlineCSSProperties(),
saving the results to the given OutputStream. |
static void |
writeStylesheet(DOMOutputOptions options,
java.io.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 java.lang.String |
writeStylesheet(java.util.Properties cssProperties)
Writes out the CSS stylesheet made from the given cssProperties, returning
the result as a String.
|
static void |
writeStylesheet(java.util.Properties cssProperties,
java.io.OutputStream cssOutputStream)
Writes out the CSS stylesheet made from the given cssProperties,
saving the results to the given
OutputStream. |
static void |
writeStylesheet(java.util.Properties cssProperties,
java.io.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, java.io.OutputStream cssOutputStream)
DOMOutputOptions Object,
using the default if nothing has been specified, saving the results to the given
OutputStream.options - cssOutputStream - public static java.lang.String writeDefaultStylesheet()
readBuiltinInlineCSSProperties(),
returning the result as a String.public static java.lang.String writeStylesheet(java.util.Properties cssProperties)
public static void writeDefaultStylesheet(java.io.OutputStream cssOutputStream)
readBuiltinInlineCSSProperties(),
saving the results to the given OutputStream.public static void writeStylesheet(java.util.Properties cssProperties,
java.io.OutputStream cssOutputStream)
OutputStream.public static void writeStylesheet(java.util.Properties cssProperties,
java.io.Writer cssOutputWriter)
Writer.public static java.util.Properties readBuiltinInlineCSSProperties()
public static java.util.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(java.lang.String[] args)
throws java.io.IOException
args - Array containing 1 argument: the File that the default CSS should be written to.
Any parent directories will be created as required.java.io.FileNotFoundExceptionjava.io.IOException