Package org.iosgi.outpost.operations

Examples of org.iosgi.outpost.operations.Put


  public void put(InputStream is, File to) throws InterruptedException,
      OperationExecutionException {
    ByteArrayOutputStream baos = new ByteArrayOutputStream();
    Streams.drain(is, baos);
    Put p = new Put(to, baos.toByteArray());
    perform(p);
  }
View Full Code Here


    perform(p);
  }

  public void put(byte[] data, File to) throws InterruptedException,
      OperationExecutionException {
    Put p = new Put(to, data);
    perform(p);
  }
View Full Code Here

      InterruptedException, OperationExecutionException {
    if (filter != null && !filter.accept(from)) {
      return;
    }
    if (from.isFile()) {
      Put p = new Put(from, to);
      perform(p);
    } else if (from.isDirectory()) {
      mkdir(to);
      for (File f : from.listFiles()) {
        put(f, new File(to, f.getName()), filter);
View Full Code Here

TOP

Related Classes of org.iosgi.outpost.operations.Put

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.