java.io.Serializable
, java.lang.Comparable<ResourceType>
public enum ResourceType extends java.lang.Enum<ResourceType>
Enum Constant | Description |
---|---|
DATALINK |
DataLink {links}-response table.
|
FITS_IMAGE |
FITS file to be interpreted as image data.
|
IMAGE |
Graphical image, typically not FITS (PNG, JPEG etc).
|
SPECTRUM |
Some kind of spectrum.
|
TABLE |
Table.
|
UNKNOWN |
Unknown resource type.
|
WEB |
Something that can be displayed in a web browser, for instance HTML.
|
Modifier and Type | Method | Description |
---|---|---|
static ResourceType |
guessResourceType(java.net.URL url,
java.lang.String contentType,
java.lang.String standardId) |
Attempts to determine the type of resource characterised by
available information.
|
static ResourceType |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static ResourceType[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ResourceType TABLE
public static final ResourceType DATALINK
public static final ResourceType FITS_IMAGE
public static final ResourceType SPECTRUM
public static final ResourceType IMAGE
public static final ResourceType WEB
public static final ResourceType UNKNOWN
public static ResourceType[] values()
for (ResourceType c : ResourceType.values()) System.out.println(c);
public static ResourceType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static ResourceType guessResourceType(java.net.URL url, java.lang.String contentType, java.lang.String standardId)
url
- resource URLcontentType
- known or inferred Content-Type string (RFC 2045),
or null if not knownstandardId
- known or inferred IVOA standard ID,
or null if not knownCopyright ? 2003-2018 CCLRC: Council for the Central Laboratory of the Research Councils. All Rights Reserved.