|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
ObjectEnum<Protocol>
Protocol
public enum Protocol
The protocol used for connecting to an image source through the network. Some protocols are
specific to some plugins, for example the DODS protocol which is used only by
NetcdfImageReader. Consequently, an inspection of the
protocol can determine the image plugin to use.
This class provide also a convenient place where to summarize the various protocols understood by the Geotk library.
| coverage/geotk-coverageio (download) | View source code for this class |
| Enum Constant Summary | |
|---|---|
DODS
The Distributed Oceanographic Data System protocol. |
|
FILE
The File Protocol. |
|
FTP
The File Transfer Protocol. |
|
HTTP
The Hyper Text Transfer Protocol. |
|
UNKNOWN
Any protocol not in the above list. |
|
| Method Summary | |
|---|---|
static Protocol |
getProtocol(Object input)
Returns the protocol of the given input, or UNKNOWN. |
static Protocol |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static Protocol[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final Protocol FILE
public static final Protocol FTP
FileImageReader will need to
copy its content to a temporary file.
public static final Protocol HTTP
FileImageReader will need to copy its
content to a temporary file.
public static final Protocol DODS
NetcdfImageReader plugin.
public static final Protocol UNKNOWN
| Method Detail |
|---|
public static Protocol[] values()
for (Protocol c : Protocol.values()) System.out.println(c);
public static Protocol valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is nullpublic static Protocol getProtocol(Object input)
UNKNOWN. The input shall be an
instance of File, URL, URI or CharSequence. Any other
type will cause UNKNOWN to be returned.
input - The image input.
UNKNOWN.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||