Class FileService


public class FileService extends FileSystemProvider
A provider of file system services as wrappers around Amazon Simple Storage Service (AWS S3). This provider accepts URIs of the following forms:
  • S3://bucket/key
  • S3://access­Key@bucket/key (password not allowed)
Keys can be paths with components separated by the '/' separator. The password and the region can be specified at file system initialization time. The endpoint (e.g. "s3​.eu-central-1.amazonaws​.com") shall not be specified in the URI. In particular the region ("eu-central-1" in above example) can depend on the server location instead of the data to access, and can be a global configuration for the server.
Since:
1.2
  • Field Details

    • AWS_SECRET_ACCESS_KEY

      public static final String AWS_SECRET_ACCESS_KEY
      The property for the secret access key (password). Values shall be instances of String. If not specified, the AWS SDK default mechanism searches for the first of the following:
      • AWS_SECRET_ACCESS_KEY environment variable.
      • ~/.aws/credentials and ~/.aws/config files.
      See Also:
    • AWS_REGION

      public static final String AWS_REGION
      The property for the secret access key (password). Values shall be instances of Region. If not specified, the AWS SDK default mechanism searches for the first of the following:
      • AWS_REGION environment variable.
      • ~/.aws/credentials and ~/.aws/config files.
      See Also:
    • SEPARATOR

      public static final String SEPARATOR
      The property for the name-separator characters. The default value is "/" for simulating Unix paths. The separator must contain at least one character. They usually have only one character, but longer separators are accepted. The separator can contain any characters which are valid in a S3 object name.
      See Also:
  • Constructor Details

    • FileService

      public FileService()
      Creates a new provider of file systems for Amazon S3.
  • Method Details