Package generic.theme
Class ThemeWriter
java.lang.Object
generic.theme.ThemeWriter
Writes a theme to a file either as a single theme file or as a zip file that contains the theme
file and any external (from the file system, not the classpath) icons used by the theme.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidwriteTheme(File file, boolean asZip) Writes the theme to the given file with the option to output as a zip file.voidwriteThemeToFile(File file) Writes the theme to the given file.voidwriteThemeToZipFile(File file) Writes the theme to the given file in a zip format.protected voidwriteThemeValues(BufferedWriter writer)
-
Field Details
-
theme
-
-
Constructor Details
-
ThemeWriter
Constructor- Parameters:
theme- the theme to be written to a file
-
-
Method Details
-
writeTheme
Writes the theme to the given file with the option to output as a zip file.- Parameters:
file- the file to write toasZip- if true, outputs in zip format- Throws:
FileNotFoundException- iIOException- if an I/O error occurs trying to write the file
-
writeThemeToFile
Writes the theme to the given file.- Parameters:
file- the file to write to- Throws:
FileNotFoundException- iIOException- if an I/O error occurs trying to write the file
-
writeThemeToZipFile
Writes the theme to the given file in a zip format.- Parameters:
file- the file to write to- Throws:
IOException- if an I/O error occurs trying to write the file
-
writeThemeValues
- Throws:
IOException
-