Package freenet.support.io

Examples of freenet.support.io.FileBucket


    }
    return false;
  }

  void processRevocationBlob(final File temp, PeerNode source) {
    processRevocationBlob(new FileBucket(temp, true, false, false, true), source.userToString(), false);
  }
View Full Code Here


    FetchContext seedContext = updateManager.node.clientCore.makeClient((short) 0, true, false).getFetchContext();
    FetchContext tempContext = new FetchContext(seedContext, FetchContext.IDENTICAL_MASK, true, blocks);
    tempContext.localRequestOnly = true;

    File f;
    FileBucket b = null;
    try {
      f = File.createTempFile("main-", ".fblob.tmp", updateManager.node.clientCore.getPersistentTempDir());
      f.deleteOnExit();
      b = new FileBucket(f, false, false, true, true);
    } catch(IOException e) {
      Logger.error(this, "Cannot share main jar from " + toString + " with our peers because cannot write the cleaned version to disk: " + e, e);
      System.err.println("Cannot share main jar from " + toString + " with our peers because cannot write the cleaned version to disk: " + e);
      e.printStackTrace();
      b = null;
      f = null;
    }
    final FileBucket cleanedBlob = b;
    final File cleanedBlobFile = f;

    ClientGetCallback myCallback = new ClientGetCallback() {

      @Override
View Full Code Here

TOP

Related Classes of freenet.support.io.FileBucket

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.