Package com.amazonaws.services.s3.model
Enum S3DataSource.Utils
- java.lang.Object
-
- java.lang.Enum<S3DataSource.Utils>
-
- com.amazonaws.services.s3.model.S3DataSource.Utils
-
- All Implemented Interfaces:
Serializable
,Comparable<S3DataSource.Utils>
- Enclosing interface:
- S3DataSource
public static enum S3DataSource.Utils extends Enum<S3DataSource.Utils>
S3DataSource
specific utilities.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
cleanupDataSource(S3DataSource req, File fileOrig, InputStream inputStreamOrig, InputStream inputStreamCurr, org.apache.commons.logging.Log log)
Clean up any temporary streams created during the execution, and restore the original file and/or input stream.static S3DataSource.Utils
valueOf(String name)
Returns the enum constant of this type with the specified name.static S3DataSource.Utils[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Method Detail
-
values
public static S3DataSource.Utils[] 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 (S3DataSource.Utils c : S3DataSource.Utils.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static S3DataSource.Utils valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
cleanupDataSource
public static void cleanupDataSource(S3DataSource req, File fileOrig, InputStream inputStreamOrig, InputStream inputStreamCurr, org.apache.commons.logging.Log log)
Clean up any temporary streams created during the execution, and restore the original file and/or input stream.
-
-