Package org.jets3t.samples
Class SamplesUtils
java.lang.Object
org.jets3t.samples.SamplesUtils
Utilities used by all Sample code, collected in one place for convenience.
- Author:
- James Murty
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AWSCredentials
Loads AWS Credentials from the file samples.properties (SAMPLES_PROPERTIES_NAME
) that must be available in the classpath, and must contain settings awsAccessKey and awsSecretKey.static GSCredentials
Loads Google Storage Credentials from the file samples.properties (SAMPLES_PROPERTIES_NAME
) that must be available in the classpath, and must contain settings gsAccessKey and gsSecretKey.
-
Field Details
-
SAMPLES_PROPERTIES_NAME
- See Also:
-
AWS_ACCESS_KEY_PROPERTY_NAME
- See Also:
-
AWS_SECRET_KEY_PROPERTY_NAME
- See Also:
-
GS_ACCESS_KEY_PROPERTY_NAME
- See Also:
-
GS_SECRET_KEY_PROPERTY_NAME
- See Also:
-
-
Constructor Details
-
SamplesUtils
public SamplesUtils()
-
-
Method Details
-
loadAWSCredentials
Loads AWS Credentials from the file samples.properties (SAMPLES_PROPERTIES_NAME
) that must be available in the classpath, and must contain settings awsAccessKey and awsSecretKey.- Returns:
- the AWS credentials loaded from the samples properties file.
- Throws:
IOException
-
loadGSCredentials
Loads Google Storage Credentials from the file samples.properties (SAMPLES_PROPERTIES_NAME
) that must be available in the classpath, and must contain settings gsAccessKey and gsSecretKey.- Returns:
- the Google Storage credentials loaded from the samples properties file.
- Throws:
IOException
-