Examples of zip()


Examples of com.bj58.spat.gaea.protocol.compress.CompressBase.zip()

        CompressBase compress = CompressBase.getInstance(this.getCompressType());
       
        this.sdpType = SDPType.getSDPType(this.sdpEntity);
        byte[] sdpData = serialize.serialize(this.sdpEntity);
       
        sdpData = compress.zip(sdpData);
        int protocolLen = HEAD_STACK_LENGTH + sdpData.length;
        this.setTotalLen(protocolLen);
       
        byte[] data = new byte[protocolLen];
        data[0] = Protocol.VERSION;
View Full Code Here

Examples of com.bj58.spat.gaea.protocol.compress.CompressBase.zip()

        //数据加密
        if(this.getSDPType().getNum() != 5 && rights && desKey != null){
          sdpData = DESCoderHelper.getInstance().encrypt(sdpData, desKey);//DES加密数据
        }
       
        sdpData = compress.zip(sdpData);
        int protocolLen = HEAD_STACK_LENGTH + sdpData.length;
        this.setTotalLen(protocolLen);
       
        byte[] data = new byte[protocolLen];
        data[0] = Protocol.VERSION;
View Full Code Here

Examples of com.boundlessgeo.geoserver.bundle.BundleExporter.zip()

        WorkspaceInfo ws = findWorkspace(wsName, cat);
        BundleExporter exporter = new BundleExporter(cat, new ExportOpts(ws));
        exporter.run();

        Path zip = exporter.zip();

        response.setContentType(APPLICATION_ZIP_VALUE);
        response.setHeader("Content-Disposition", "attachment; filename=\""+zip.getFileName()+"\"");
        FileUtils.copyFile(zip.toFile(), response.getOutputStream());
    }
View Full Code Here

Examples of com.googlecode.objectify.annotation.Serialize.zip()

        // with whatever the annotation says, and if that doesn't work, try the other option.
        try {
          ByteArrayInputStream bais = new ByteArrayInputStream(value.getBytes());

          // Start with the annotation
          boolean unzip = serializeAnno.zip();
          try {
            return readObject(bais, unzip);
          } catch (IOException ex) {  // will be one of ZipException or StreamCorruptedException
            if (log.isLoggable(Level.INFO))
              log.log(Level.INFO, "Error trying to deserialize object using unzip=" + unzip + ", retrying with " + !unzip, ex);
View Full Code Here

Examples of com.googlecode.objectify.annotation.Serialize.zip()

      protected Blob saveValue(Object value, boolean index, SaveContext ctx, Path path) throws SkipException {
        try {
          ByteArrayOutputStream baos = new ByteArrayOutputStream();
          OutputStream out = baos;

          if (serializeAnno.zip()) {
            Deflater deflater = new Deflater(serializeAnno.compressionLevel());
            out = new DeflaterOutputStream(out, deflater);
          }

          ObjectOutputStream oos = new ObjectOutputStream(out);
View Full Code Here

Examples of de.matrixweb.smaller.clients.common.Util.zip()

            }
          }
        }

        util.unzip(this.target, util.send(this.host, this.port, this.proxyhost,
            this.proxyport, util.zip(temp, includedFiles, configFile)));
      } finally {
        FileUtils.deleteDirectory(temp);
      }
    } catch (final IOException e) {
      log(Util.formatException(e), Project.MSG_ERR);
View Full Code Here

Examples of de.matrixweb.smaller.clients.common.Util.zip()

      final ConfigFile configFile) throws ExecutionException {
    final Util util = new Util(new MavenLogger());
    util.unzip(
        target,
        util.send(host, port, proxyhost, proxyport,
            util.zip(base, includedFiles, configFile)));
  }

  private class MavenLogger implements Logger {

    /**
 
View Full Code Here

Examples of hudson.FilePath.zip()

        FilePath baseFile = new FilePath(root,base);

        if(baseFile.isDirectory()) {
            if(zip) {
                rsp.setContentType("application/zip");
                baseFile.zip(rsp.getOutputStream(),rest);
                return;
            }
            if (plain) {
                rsp.setContentType("text/plain;charset=UTF-8");
                OutputStream os = rsp.getOutputStream();
View Full Code Here

Examples of hudson.FilePath.zip()

        FilePath baseFile = new FilePath(root,base);

        if(baseFile.isDirectory()) {
            if(zip) {
                rsp.setContentType("application/zip");
                baseFile.zip(rsp.getOutputStream(),rest);
                return;
            }
            if (plain) {
                rsp.setContentType("text/plain;charset=UTF-8");
                OutputStream os = rsp.getOutputStream();
View Full Code Here

Examples of net.jcores.jre.cores.CoreFile.zip()

       
        final CoreFile source = $("documentation").file();
        final int srcsize = source.dir().size();
       
        // Zip by path
        source.zip(path);
        Assert.assertEquals(srcsize, $(path).file().input().zipstream().dir().size());
        $(path).file().delete();
    }
   
   
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.