Package java.util.jar

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


                    jos.write(readBuffer, 0, bytesIn);
                    bytesIn = jis.read(readBuffer);
                }
                jos.closeEntry();
            }
            jos.finish();
            jos.flush();
        } finally {
            jis.close();
        }
    }
View Full Code Here


      }
      catch (IOException ex) {
        // ignore
      }
      try {
        jarStream.finish();
      }
      catch (IOException ex) {
        // ignore
      }
View Full Code Here

      out.flush();
      out.closeEntry();
    }

    out.flush();
    out.finish();
    out.close();

    if (RemoteOSGiServiceImpl.PROXY_DEBUG) {
      // final File file =
      // RemoteOSGiActivator.context.getDataFile(fileName
View Full Code Here

      OutputStreamWriter outsWriter = new OutputStreamWriter(jos);
      outsWriter.append("<?xml version=\"1.0\" encoding=\"UTF-8\"?>").append("\n");
      edWriter.writeEndpointDescriptions(outsWriter, endpointDescriptions);
      outsWriter.flush();
      jos.closeEntry();
      jos.finish();
    } finally {
      if (jos != null)
        jos.close();
    }
  }
View Full Code Here

    final JarOutputStream out = new JarOutputStream(bout, mf);

    scan(bundle, prefix, "", out, buffer, crc); //$NON-NLS-1$

    out.flush();
    out.finish();
    out.close();
    return bout.toByteArray();
  }

  private static void scan(final Bundle bundle, final String prefix,
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.