Examples of finish()


Examples of java.util.jar.JarOutputStream.finish()

    jstream.putNextEntry(ze);
    jstream.closeEntry();
    ze = new ZipEntry("lib/lib2.jar");
    jstream.putNextEntry(ze);
    jstream.closeEntry();
    jstream.finish();
    jstream.close();
    jobConf.setJar(jobJarFile.toURI().toString());
  }

  /**
 
View Full Code Here

Examples of java.util.zip.Deflater.finish()

                Deflater deflater=null;
                try {
                    deflater=deflater_pool.take();
                    deflater.reset();
                    deflater.setInput(payload, msg.getOffset(), length);
                    deflater.finish();
                    deflater.deflate(compressed_payload);
                    compressed_size=deflater.getTotalOut();

                    if ( compressed_size < length ) { // JGRP-1000
                        byte[] new_payload=new byte[compressed_size];
View Full Code Here

Examples of java.util.zip.GZIPOutputStream.finish()

            // Be careful, the reset writes a TC_RESET byte
            oos.reset();
            // The OOS flush call the flush of this output stream.
            oos.flush();
            gzipos.finish();
            gzipos.flush();
           
            if (getLogger().isLoggable(BasicLevel.DEBUG))
              getLogger().log(BasicLevel.DEBUG, "writeNotification - size=" + baos.size());
View Full Code Here

Examples of java.util.zip.InflaterOutputStream.finish()

        } catch (IndexOutOfBoundsException e) {
            // expected
        }

        ios = new InflaterOutputStream(os);
        ios.finish();
       
        try {
            ios.write(bytes, -1,-100);
            fail("Should throw IndexOutOfBoundsException");
        } catch (IndexOutOfBoundsException e) {
View Full Code Here

Examples of java.util.zip.ZipOutputStream.finish()

          }
        }       
        // Write Content objects in files
        writeContents(zipOut, offlineFurnitureLibrary, furnitureResourcesLocalDirectory, contentEntries);
        // Finish zip writing
        zipOut.finish();
        zipOut.close();
        zipOut = null;

        copyFile(tmpFile, furnitureLibraryFile);
        tmpFile.delete();
View Full Code Here

Examples of jnr.ffi.provider.InvocationSession.finish()

                    marshallers[i].marshal(session, buffer, parameters[i]);
                }

                return functionInvoker.invoke(runtime, function, buffer);
            } finally {
                session.finish();
            }
        }
    }
   
    static interface Marshaller {
View Full Code Here

Examples of jp.vmi.selenium.selenese.Runner.finish()

        s2.addSelenese(c2);
        s1.addSelenese(c1);
        s1.addSelenese(s2);
        runner.setHtmlResultDir(root.getPath());
        s1.execute(null, runner);
        runner.finish();
    }

    /**
     * Generate HTML result.
     *
 
View Full Code Here

Examples of lombok.ast.printer.StructureFormatter.finish()

      if (!problems.isEmpty()) fail("position error: " + problems.get(0));
    } catch (AssertionError e) {
      System.out.println("-------PARSED-PRINTED:");
      StructureFormatter formatter2 = StructureFormatter.formatterWithPositions();
      node.accept(new SourcePrinter(formatter2));
      System.out.println(formatter2.finish());
      System.out.println("--------------PRINTED:");
      System.out.println(formatter.finish());
      System.out.println("----------------------");
      throw e;
    }
View Full Code Here

Examples of lombok.ast.printer.TextFormatter.finish()

  @Override public String toString() {
    TextFormatter formatter = new TextFormatter();
    SourcePrinter printer = new SourcePrinter(formatter);
    accept(printer);
    return formatter.finish();
  }
 
  @Override public boolean replaceChild(Node original, Node replacement) {
    // Intentionally left blank - custom implementations are usually terminal nodes that can't have children.
    return false;
View Full Code Here

Examples of net.glowstone.inventory.DragTracker.finish()

                case 5: // add slot right
                    return drag.addSlot(right, message.getSlot());

                case 2: // end left drag
                case 6: // end right drag
                    List<Integer> slots = drag.finish(right);
                    if (slots == null || cursor == null) {
                        return false;
                    }

                    ItemStack newCursor = cursor.clone();
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.