Package org.ka2ddo.yaac.core
Enum Class PacketExportMode
- All Implemented Interfaces:
Serializable
,Comparable<PacketExportMode>
,Constable
This enumeration defines the various formats that can be used to write a AX.25 frame to a disk file.
- Author:
- Andrew Pavlin, KA2DDO
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the file type suffix for this packet export mode.toString()
Returns the name of this enum constant, as contained in the declaration.static PacketExportMode
Find the PacketExportMode enum for the specified filetype.static PacketExportMode
Returns the enum constant of this class with the specified name.static PacketExportMode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
JAVA_SERIALIZED
-
CSV
-
COUNTED_BINARY
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getFileType
Get the file type suffix for this packet export mode.- Returns:
- String of the file type (without the leading period)
-
valueFor
Find the PacketExportMode enum for the specified filetype.- Parameters:
filetype
- String of a filetype that should be supported for YAAC APRS packet log files- Returns:
- matching PacketExportMode enum
- Throws:
IllegalArgumentException
- if the filetype doesn't match any supported mode
-
toString
Returns the name of this enum constant, as contained in the declaration. This method may be overridden, though it typically isn't necessary or desirable. An enum type should override this method when a more "programmer-friendly" string form exists.- Overrides:
toString
in classEnum<PacketExportMode>
- Returns:
- the name of this enum constant
-