Package com.adaptris.core.lms
Enum ZipFileBackedMessageFactory.CompressionMode
- java.lang.Object
-
- java.lang.Enum<ZipFileBackedMessageFactory.CompressionMode>
-
- com.adaptris.core.lms.ZipFileBackedMessageFactory.CompressionMode
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ZipFileBackedMessageFactory.CompressionMode>
- Enclosing class:
- ZipFileBackedMessageFactory
public static enum ZipFileBackedMessageFactory.CompressionMode extends java.lang.Enum<ZipFileBackedMessageFactory.CompressionMode>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description Both
Both mode expects uncompressed data as message payload and yield uncompressed data when reading the message back.Compress
Compress mode will expect uncompressed data as message payload and write it to a zip file.Uncompress
Uncompress mode will expect compressed data as the message payload and yield uncompressed data when the message is being read.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ZipFileBackedMessageFactory.CompressionMode
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ZipFileBackedMessageFactory.CompressionMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
Compress
public static final ZipFileBackedMessageFactory.CompressionMode Compress
Compress mode will expect uncompressed data as message payload and write it to a zip file. Reading from the message in this mode will yield compressed data.
-
Uncompress
public static final ZipFileBackedMessageFactory.CompressionMode Uncompress
Uncompress mode will expect compressed data as the message payload and yield uncompressed data when the message is being read.
-
Both
public static final ZipFileBackedMessageFactory.CompressionMode Both
Both mode expects uncompressed data as message payload and yield uncompressed data when reading the message back. The data is only compressed in the temporary file.
-
-
Method Detail
-
values
public static ZipFileBackedMessageFactory.CompressionMode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ZipFileBackedMessageFactory.CompressionMode c : ZipFileBackedMessageFactory.CompressionMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ZipFileBackedMessageFactory.CompressionMode 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 namejava.lang.NullPointerException
- if the argument is null
-
-