Décompacter un fichier Pack200 à l’aide de ‘Pack200.Unpacker'(java 5)

Author:

 int,string,jar,static, java
{filelink=18}

import java.io.*;
import java.util.jar.*;
import java.util.zip.GZIPInputStream;

public class ExUnpack200
{

  public static void main(String[] args)
  {

    String fichierPack = "jarPack.pack";
    JarOutputStream out = null;
    InputStream in = null;
    try {
      Pack200.Unpacker unpacker = Pack200.newUnpacker();
      out = new JarOutputStream(new FileOutputStream(fichierPack + ".unpacked"));
      in = new FileInputStream(fichierPack);
      if (fichierPack.endsWith(".gz")) in = new GZIPInputStream(in);
      unpacker.unpack(in, out);
    }
    catch (IOException ex) {
      System.out.println(ex.getMessage());
    }

  }
}

A Voir sur le même Sujet:

  • c++ pack200
  • fichier de grande taille avec copy cmd en java runtime
  • créer un document word en java
  • lire un fichier js unpacker
  • utilise fichier texte comme source de base de donnee en java(zip)
  • compare bufferedreader entree byte par byte java
  • unpacker unpack new gzipinputstream
  • java.io.inputstream source code
  • java.io cours
  • un exemple du programme java sur cmd pdf

Leave a Reply

Your email address will not be published. Required fields are marked *