public enum Format extends Enum<Format>
Enum defines the available formats of the resource bundle output file to convert to.ResourceBundleConverter| Enum Constant and Description |
|---|
json
Format as
JSON. |
properties
Format as
Properties. |
| Modifier and Type | Method and Description |
|---|---|
(package private) abstract String |
getNewline() |
static Format |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Format[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
(package private) void |
write(Properties props,
File file,
String encoding,
String comment) |
private void |
writeEnd(Writer writer) |
private void |
writeProperty(Writer writer,
String key,
String message,
boolean first) |
private void |
writeStart(Writer writer,
String comment) |
public static final Format properties
Properties.public static final Format json
JSON.public static Format[] values()
for (Format c : Format.values()) System.out.println(c);
public static Format valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullabstract String getNewline()
void write(Properties props, File file, String encoding, String comment)
private void writeProperty(Writer writer, String key, String message, boolean first) throws IOException
IOExceptionprivate void writeStart(Writer writer, String comment) throws IOException
IOExceptionprivate void writeEnd(Writer writer) throws IOException
IOExceptionCopyright © 2001–2016 mmm-Team. All rights reserved.