Enum OutputDataFormat
- java.lang.Object
-
- java.lang.Enum<OutputDataFormat>
-
- com.google.tsunami.main.cli.option.OutputDataFormat
-
- All Implemented Interfaces:
Serializable,Comparable<OutputDataFormat>
public enum OutputDataFormat extends Enum<OutputDataFormat>
Output format of Tsunami's scanning results.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Optional<OutputDataFormat>parse(String value)Parses the givenvalueintoOutputDataFormatenum.static OutputDataFormatvalueOf(String name)Returns the enum constant of this type with the specified name.static OutputDataFormat[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BIN_PROTO
public static final OutputDataFormat BIN_PROTO
-
JSON
public static final OutputDataFormat JSON
-
-
Method Detail
-
values
public static OutputDataFormat[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (OutputDataFormat c : OutputDataFormat.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static OutputDataFormat valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
parse
public static Optional<OutputDataFormat> parse(String value)
Parses the givenvalueintoOutputDataFormatenum.- Parameters:
value- the string representation of theOutputDataFormatenum.- Returns:
- the parsed
OutputDataFormatenum.
-
-