Package java.util.jar

Examples of java.util.jar.JarInputStream.closeEntry()


            JarEntry nextEntry = jis.getNextJarEntry();
            while (nextEntry != null && descriptorEntry == null) {
                if (CANNED_GROUP_EXPRESSION_DESCRIPTOR_PATH.equals(nextEntry.getName())) {
                    descriptorEntry = nextEntry;
                } else {
                    jis.closeEntry();
                    nextEntry = jis.getNextJarEntry();
                }
            }

            if (descriptorEntry == null) {
View Full Code Here


            JarEntry nextEntry = jis.getNextJarEntry();
            while (nextEntry != null && descriptorEntry == null) {
                if (PLUGIN_DESCRIPTOR_PATH.equals(nextEntry.getName())) {
                    descriptorEntry = nextEntry;
                } else {
                    jis.closeEntry();
                    nextEntry = jis.getNextJarEntry();
                }
            }

            if (descriptorEntry == null) {
View Full Code Here

            JarEntry nextEntry = jis.getNextJarEntry();
            while (nextEntry != null && descriptorEntry == null) {
                if (PLUGIN_DESCRIPTOR_PATH.equals(nextEntry.getName())) {
                    descriptorEntry = nextEntry;
                } else {
                    jis.closeEntry();
                    nextEntry = jis.getNextJarEntry();
                }
            }

            ServerPluginDescriptorType pluginDescriptor = null;
View Full Code Here

                    // Write out the assembled WAR file to the EAR
                    warBytesOut.writeTo( earOut );

                    earOut.flush();
                    earOut.closeEntry();
                    earIn.closeEntry();
                   
                } else {
                   
                    earOut.putNextEntry( entry );
                    IOUtils.copy( earIn, earOut );
View Full Code Here

                    earOut.putNextEntry( entry );
                    IOUtils.copy( earIn, earOut );
                   
                    earOut.flush();
                    earOut.closeEntry();
                    earIn.closeEntry();
                   
                }
            }           
           
        } finally {
View Full Code Here

            // Read the source archive entry by entry
            while ((jarEntry = jarIn.getNextJarEntry()) != null) {
                if (Assembler.SERVLET_XML.equals(jarEntry.getName())) {
                    webXml = IOUtils.toString(jarIn);
                }
                jarIn.closeEntry();
            }
        } finally {
            jarIn.close();
        }
View Full Code Here

                    String name = jarEntry.getName().substring( 0, jarEntry.getName().indexOf( "." ) );

                    classes.add( name.replaceAll( "/", "\\." ) );
                }

                jarStream.closeEntry();
                jarEntry = jarStream.getNextJarEntry();
            }
        }
        finally
        {
View Full Code Here

                jos.putNextEntry(entryOut);
                if (!entryIn.isDirectory()) {
                    IOUtils.copy(jis, jos);
                }
                jos.closeEntry();
                jis.closeEntry();
                entryIn = jis.getNextJarEntry();
            }

            // close the JAR file now to force writing
            jos.close();
View Full Code Here

        BufferedOutputStream bos = new BufferedOutputStream(new FileOutputStream(outputFile));
        copy(bos, jis);
        bos.flush();
        bos.close();
      }
      jis.closeEntry();
    }
  }

}
View Full Code Here

              {
                add(cf.getName());
              }
            }

            jar.closeEntry();
          }

          jar.close();
        }
      }
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.