Interface ConfigWriter
public interface ConfigWriter
Interface for writing configurations.
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidwrite(UnmodifiableConfig config, File file, WritingMode writingMode) Writes a configuration.default voidwrite(UnmodifiableConfig config, File file, WritingMode writingMode, Charset charset) Writes a configuration.default voidwrite(UnmodifiableConfig config, OutputStream output) Writes a configuration.default voidwrite(UnmodifiableConfig config, OutputStream output, Charset charset) Writes a configuration.voidwrite(UnmodifiableConfig config, Writer writer) Writes a configuration.default voidwrite(UnmodifiableConfig config, URL url) Writes a configuration.default voidwrite(UnmodifiableConfig config, Path file, WritingMode writingMode) Writes a configuration.default voidwrite(UnmodifiableConfig config, Path file, WritingMode writingMode, Charset charset) Writes a configuration.default StringwriteToString(UnmodifiableConfig config) Writes a configuration to a String.
-
Method Details
-
write
Writes a configuration.- Parameters:
config- the config to writewriter- the writer to write it to- Throws:
WritingException- if an error occurs
-
write
Writes a configuration.- Parameters:
config- the config to writeoutput- the output to write it to- Throws:
WritingException- if an error occurs
-
write
Writes a configuration.- Parameters:
config- the config to writeoutput- the output to write it to- Throws:
WritingException- if an error occurs
-
write
Writes a configuration. The content of the file is overwritten. This method is equivalent towrite(config, file, false)
- Parameters:
config- the config to writefile- the nio Path to write it to- Throws:
WritingException- if an error occurs
-
write
Writes a configuration.- Parameters:
config- the config to writefile- the nio Path to write it to- Throws:
WritingException- if an error occurs
-
write
Writes a configuration. The content of the file is overwritten. This method is equivalent towrite(config, file, false)
- Parameters:
config- the config to writefile- the file to write it to- Throws:
WritingException- if an error occurs
-
write
Writes a configuration.- Parameters:
config- the config to writefile- the file to write it to- Throws:
WritingException- if an error occurs
-
write
Writes a configuration.- Parameters:
config- the config to writeurl- the url to write it to- Throws:
WritingException- if an error occurs
-
writeToString
Writes a configuration to a String.- Parameters:
config- the config to write- Returns:
- a new String
- Throws:
WritingException- if an error occurs
-