Class SamplesUtils

java.lang.Object
org.jets3t.samples.SamplesUtils

public class SamplesUtils extends Object
Utilities used by all Sample code, collected in one place for convenience.
Author:
James Murty
  • Field Details

  • Constructor Details

    • SamplesUtils

      public SamplesUtils()
  • Method Details

    • loadAWSCredentials

      public static AWSCredentials loadAWSCredentials() throws IOException
      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

      public static GSCredentials loadGSCredentials() throws IOException
      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