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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
writeTheme
(File file, boolean asZip) Writes the theme to the given file with the option to output as a zip file.void
writeThemeToFile
(File file) Writes the theme to the given file.void
writeThemeToZipFile
(File file) Writes the theme to the given file in a zip format.protected void
writeThemeValues
(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
-