|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||
java.lang.Objectjava.lang.Enum<FormatType>
org.jnetstream.capture.FormatType
public enum FormatType
Some standard supplied file types with some convenience methods. The enum structure implements the required CaptureType which all factory methods require and you can use these constants directly to specify the file type.
| Nested Class Summary | |
|---|---|
static interface |
FormatType.Detail
Detailed information about a specific format. |
| Nested classes/interfaces inherited from interface com.slytechs.utils.namespace.Named |
|---|
com.slytechs.utils.namespace.Named.Util |
| Enum Constant Summary | |
|---|---|
Nap
jNetStream's own Network cAPture file format |
|
Other
Format type that does not have a "hard" implementation distributed part of the core "capture framework" distribution. |
|
Pcap
TcpDump.org Pcap file type |
|
Snoop
Snoop file format |
|
| Method Summary | |
|---|---|
java.lang.String[] |
getCommonExtensions()
Retrieves common extensions for this file format. |
java.lang.String |
getDetailedName()
|
java.lang.String |
getName()
Gets the string name of the file type. |
java.lang.Class<? extends FileCapture<? extends FilePacket>> |
getTypeClass()
Gets the main class that provides all the functionality for this type of file |
static FormatType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static FormatType[] |
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 |
| Enum Constant Detail |
|---|
public static final FormatType Pcap
public static final FormatType Nap
public static final FormatType Snoop
public static final FormatType Other
| Method Detail |
|---|
public static final FormatType[] values()
for(FormatType c : FormatType.values())
System.out.println(c);
public static FormatType 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 namepublic java.lang.Class<? extends FileCapture<? extends FilePacket>> getTypeClass()
org.jnetstream.capture.CaptureType#getTypeClass()public java.lang.String getName()
getName in interface com.slytechs.utils.namespace.NamedNamed.getName()public java.lang.String[] getCommonExtensions()
public java.lang.String getDetailedName()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||