Tabnine Logo
StorageService.putObject
Code IndexAdd Tabnine to your IDE (free)

How to use
putObject
method
in
org.jets3t.service.StorageService

Best Java code snippets using org.jets3t.service.StorageService.putObject (Showing top 5 results out of 315)

origin: io.druid.extensions/druid-s3-extensions

 @Override
 public Void call() throws Exception
 {
  final StorageObject object = new StorageObject(logFile);
  object.setKey(taskKey);
  service.putObject(config.getS3Bucket(), object);
  return null;
 }
}
origin: net.java.dev.jets3t/jets3t

service.putObject(bucketName[0], encryptedCredentialsObject);
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.jets3t

service.putObject(bucketName[0], encryptedCredentialsObject);
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.jets3t

public void run() {
  try {
    File underlyingFile = object.getDataInputFile();
    if (object.getDataInputStream() != null) {
      interruptableInputStream = new InterruptableInputStream(object.getDataInputStream());
      ProgressMonitoredInputStream pmInputStream = new ProgressMonitoredInputStream(
        interruptableInputStream, progressMonitor);
      object.setDataInputStream(pmInputStream);
    }
    result = storageService.putObject(bucketName, object);
    if (underlyingFile instanceof TempFile) {
      underlyingFile.delete();
    }
  } catch (ServiceException e) {
    result = e;
  }
}
origin: net.java.dev.jets3t/jets3t

public void run() {
  try {
    File underlyingFile = object.getDataInputFile();
    if (object.getDataInputStream() != null) {
      interruptableInputStream = new InterruptableInputStream(object.getDataInputStream());
      ProgressMonitoredInputStream pmInputStream = new ProgressMonitoredInputStream(
        interruptableInputStream, progressMonitor);
      object.setDataInputStream(pmInputStream);
    }
    result = storageService.putObject(bucketName, object);
    if (underlyingFile instanceof TempFile) {
      underlyingFile.delete();
    }
  } catch (ServiceException e) {
    result = e;
  }
}
org.jets3t.serviceStorageServiceputObject

Javadoc

Puts an object inside an existing bucket, creating a new object or overwriting an existing one with the same key. The Access Control List settings of the object (if any) will also be applied.

This method can be performed by anonymous services. Anonymous services can put objects into a publicly-writable bucket.

Popular methods of StorageService

  • getObject
    Returns an object representing the details and data of an item that meets any given preconditions.Im
  • getObjectDetails
    Returns an object representing the details of an item that meets any given preconditions. The object
  • assertAuthenticatedConnection
    Throws an exception if this service is anonymous (that is, it was created without an ProviderCredent
  • assertValidBucket
    Throws an exception if a bucket is null or contains a null/empty name.
  • assertValidObject
    Throws an exception if an object is null or contains a null/empty key.
  • copyObject
    Copy an object. You can copy an object within a single bucket or between buckets, and can optionally
  • copyObjectImpl
    Copy an object within your account. Copies within a single bucket or between buckets, and optionally
  • createBucket
    Create a bucket with the Access Control List settings of the bucket object (if any).Caution: Perform
  • createBucketImpl
  • deleteBucketImpl
  • deleteObject
    Deletes an object from a bucket. This method can be performed by anonymous services. Anonymous servi
  • deleteObjectImpl
  • deleteObject,
  • deleteObjectImpl,
  • getAccountOwnerImpl,
  • getBucket,
  • getBucketAclImpl,
  • getHttpsOnly,
  • getJetS3tProperties,
  • getObjectAcl,
  • getObjectAclImpl

Popular in Java

  • Running tasks concurrently on multiple threads
  • startActivity (Activity)
  • getApplicationContext (Context)
  • getResourceAsStream (ClassLoader)
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now