public static enum Resource.Type extends Enum<Resource.Type>
Modifier and Type | Method and Description |
---|---|
static Resource.Type |
of(File location)
Returns the content type specified by the given file.
|
static Resource.Type |
of(String string)
Returns the content type specified by the given string.
|
static Resource.Type |
of(URL location)
Returns the content type specified by the given URL.
|
static Resource.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Resource.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Resource.Type JSON
public static final Resource.Type XML
public static Resource.Type[] values()
for (Resource.Type c : Resource.Type.values()) System.out.println(c);
public static Resource.Type 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 static Resource.Type of(String string)
public static Resource.Type of(URL location)
public static Resource.Type of(File location)
Copyright © 2024 The Cornutum Project. All rights reserved.