congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
MultipartPart.getSize
Code IndexAdd Tabnine to your IDE (free)

How to use
getSize
method
in
org.jets3t.service.model.MultipartPart

Best Java code snippets using org.jets3t.service.model.MultipartPart.getSize (Showing top 5 results out of 315)

origin: net.java.dev.jets3t/jets3t

@Override
public String toString() {
  return this.getClass().getName() + " ["
    + "partNumber=" + getPartNumber()
    + ", lastModified=" + getLastModified()
    + ", etag=" + getEtag()
    + ", size=" + getSize()
    + "]";
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.jets3t

@Override
public String toString() {
  return this.getClass().getName() + " ["
    + "partNumber=" + getPartNumber()
    + ", lastModified=" + getLastModified()
    + ", etag=" + getEtag()
    + ", size=" + getSize()
    + "]";
}
origin: iterate-ch/cyberduck

  @Override
  public MultipartPart call() throws BackgroundException {
    try {
      final HttpRange range = HttpRange.byLength(offset, length);
      final MultipartPart part = session.getClient().multipartUploadPartCopy(multipart, partNumber,
        containerService.getContainer(source).getName(), containerService.getKey(source),
        null, null, null, null, range.getStart(), range.getEnd(), source.attributes().getVersionId());
      if(log.isInfoEnabled()) {
        log.info(String.format("Received response %s for part number %d", part, partNumber));
      }
      // Populate part with response data that is accessible via the object's metadata
      return new MultipartPart(partNumber,
        null == part.getLastModified() ? new Date(System.currentTimeMillis()) : part.getLastModified(),
        null == part.getEtag() ? StringUtils.EMPTY : part.getEtag(),
        part.getSize());
    }
    catch(S3ServiceException e) {
      throw new S3ExceptionMappingService().map("Cannot copy {0}", e, source);
    }
  }
});
origin: iterate-ch/cyberduck

offset += c.getSize();
break;
origin: iterate-ch/cyberduck

/**
 * @return No Content-Range support
 */
@Override
public Append append(final Path file, final Long length, final Cache<Path> cache) throws BackgroundException {
  if(length >= preferences.getLong("s3.upload.multipart.threshold")) {
    if(preferences.getBoolean("s3.upload.multipart")) {
      try {
        final List<MultipartUpload> upload = multipartService.find(file);
        if(!upload.isEmpty()) {
          Long size = 0L;
          for(MultipartPart completed : multipartService.list(upload.iterator().next())) {
            size += completed.getSize();
          }
          return new Append(size);
        }
      }
      catch(AccessDeniedException | InteroperabilityException e) {
        log.warn(String.format("Ignore failure listing incomplete multipart uploads. %s", e.getDetail()));
      }
    }
  }
  if(finder.withCache(cache).find(file)) {
    final PathAttributes attr = attributes.withCache(cache).find(file);
    return new Append(false, true).withSize(attr.getSize()).withChecksum(attr.getChecksum());
  }
  return Write.notfound;
}
org.jets3t.service.modelMultipartPartgetSize

Popular methods of MultipartPart

  • <init>
  • getEtag
  • getLastModified
  • getPartNumber
  • sameEtag

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getExternalFilesDir (Context)
  • startActivity (Activity)
  • getSystemService (Context)
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • Option (scala)
  • Top 17 Free Sublime Text Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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