public enum Parser extends Enum<Parser>
Modifier and Type | Method and Description |
---|---|
static Parser |
fromContentType(String contentType) |
String |
getContentType() |
static Parser |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Parser[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Parser XML
public static final Parser TEXT
public static final Parser JSON
public static final Parser HTML
public static Parser[] values()
for (Parser c : Parser.values()) System.out.println(c);
public static Parser 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 nullpublic String getContentType()
Copyright © 2010–2019. All rights reserved.