org.jnetstream.capture
Enum CaptureType
java.lang.Object
java.lang.Enum<CaptureType>
org.jnetstream.capture.CaptureType
- All Implemented Interfaces:
- com.slytechs.utils.namespace.Named, java.io.Serializable, java.lang.Comparable<CaptureType>
public enum CaptureType
- extends java.lang.Enum<CaptureType>
- implements com.slytechs.utils.namespace.Named
Defines the type of capture this is. The type can be very specified even for
individual file capture types. There are several differnt types of capture
that can take place, and this interface provides generic way of accessing
information about the type.
- Author:
- Mark Bednarczyk, Sly Technologies, Inc.
| Nested classes/interfaces inherited from interface com.slytechs.utils.namespace.Named |
com.slytechs.utils.namespace.Named.Util |
|
Method Summary |
java.lang.String |
getName()
|
static CaptureType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static CaptureType[] |
values()
Returns an array containing the constants of this enum type, in
the order they're declared. |
| Methods inherited from class java.lang.Enum |
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
LiveCapture
public static final CaptureType LiveCapture
FileCapture
public static final CaptureType FileCapture
StreamCapture
public static final CaptureType StreamCapture
values
public static final CaptureType[] values()
- Returns an array containing the constants of this enum type, in
the order they're declared. This method may be used to iterate
over the constants as follows:
for(CaptureType c : CaptureType.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they're declared
valueOf
public static CaptureType valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified name
getName
public java.lang.String getName()
- Specified by:
getName in interface com.slytechs.utils.namespace.Named