Package freenet.support.api

Examples of freenet.support.api.Bucket.free()


      }
    }
    if (delete1 != null)
      delete1.free();
    if (delete2 != null)
      delete2.free();
    // We cannot deploy yet, we must wait for the dependencies check.
  }

  /**
   * Called when the NodeUpdater starts to fetch a new version of the jar.
View Full Code Here


      return parsedSone;
    } catch (Exception e1) {
      logger.log(Level.WARNING, String.format("Could not parse Sone from %s!", requestUri), e1);
    } finally {
      Closer.close(soneInputStream);
      soneBucket.free();
    }
    return null;
  }

  /**
 
View Full Code Here

        ByteStreams.copy(imageInputStream, imageDataOutputStream);
      } catch (IOException ioe1) {
        logger.log(Level.WARNING, "Could not read uploaded image!", ioe1);
        return;
      } finally {
        fileBucket.free();
        Closer.close(imageInputStream);
        Closer.close(imageDataOutputStream);
      }
      byte[] imageData = imageDataOutputStream.toByteArray();
      ByteArrayInputStream imageDataInputStream = null;
View Full Code Here

            parseProperties(resultBucket.getInputStream(), edition);
            latestEdition = edition;
          } catch (IOException ioe1) {
            logger.log(Level.WARNING, String.format("Could not parse sone.properties of %s!", uri), ioe1);
          } finally {
            resultBucket.free();
          }
        }
      }
    });
  }
View Full Code Here

      if(logDEBUG) Logger.debug(this, "Started insert of message from " + m.getAuthor().getNickname());
    }
    finally {
      if(tempB != null)
        tempB.free();
      Closer.close(os);
    }
  }
 
  @Override
View Full Code Here

      if(logDEBUG) Logger.debug(this, "Started insert of WoTOwnMessageList at request URI " + list.getURI());
    }
    finally {
      if(tempB != null)
        tempB.free();
      Closer.close(os);
    }
  }

  @Override
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.