Tabnine Logo
BufferOutputStream
Code IndexAdd Tabnine to your IDE (free)

How to use
BufferOutputStream
in
ch.cyberduck.core.io

Best Java code snippets using ch.cyberduck.core.io.BufferOutputStream (Showing top 3 results out of 315)

origin: iterate-ch/cyberduck

@Override
public void write(byte[] buffer) throws IOException {
  this.write(buffer, 0, buffer.length);
}
origin: iterate-ch/cyberduck

public BufferSegmentingOutputStream(final OutputStream proxy, final Long threshold, final Buffer buffer) {
  super(new NullOutputStream(), threshold, new BufferOutputStream(buffer));
  this.proxy = proxy;
  this.buffer = buffer;
}
origin: iterate-ch/cyberduck

  @Override
  public void close() throws IOException {
    try {
      // Reset offset in transfer status because data was already streamed
      // through StreamCopier when writing to buffer
      final TransferStatus range = new TransferStatus(status).length(buffer.length()).append(false);
      if(0L == buffer.length()) {
        new GraphTouchFeature(session).touch(file, new TransferStatus());
      }
      else {
        final HttpResponseOutputStream<Void> out = new GraphWriteFeature(session).write(file,
          range, callback);
        IOUtils.copy(new BufferInputStream(buffer), out);
        out.close();
        log.info(String.format("Completed upload for %s with status %s", file, range));
      }
      super.close();
    }
    catch(BackgroundException e) {
      throw new IOException(e);
    }
  }
}) {
ch.cyberduck.core.ioBufferOutputStream

Most used methods

  • <init>
  • close
  • write

Popular in Java

  • Finding current android device location
  • getSystemService (Context)
  • getSupportFragmentManager (FragmentActivity)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • Path (java.nio.file)
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • Top plugins for WebStorm
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