Pak Creator 2.0

: aNNiMON
http://annimon.wen.ru/

     (pak)          .

    2  +  .

:
 -      pak   "Pak!"  2.0
 -  pak   Macrospace (Ancient Empires  .)
 -  .png  .gif 
 - /   Fishlabs
 -  .lang   Fishlabs  txt  
 -     Macrospace  txt  
 -  stations.bin,ships.bin,names_*.bin,systems.bin()  itemms.bin  txt  
 -  .cc   HighSpeed3d

  .

  :

  pak   "Pak!"  2.0 -      .pak . 
   .pak  " "   .
    " " ,       ("file:///c:/other/").
       - ,  ok.
     :    " "   "file:///c:/other/",      "file:///c:/other/img.png",    "img.png".
    ,     .
   .

 :

  ""   .
   "  "     ,     .
   "  "    ,     .
    .
  .

 .png  .gif  -    .          ,    .

Pak   "Pak!"  2.0 ,  ,  .       .
    pak .


protected int ResCoderUNPAK(DataInputStream dis, String dir) throws IOException {
        dis.readInt(); //   0x50616B40
        int maxf = dis.readInt(); //  
        for (int i=0; i<maxf; i++) {
            String name = dis.readUTF(); //  
            FileConnection fout = (FileConnection) Connector.open(dir+name);
            if (fout.exists()) {
                fout.delete();
            }
            fout.create();
            DataOutputStream dos = fout.openDataOutputStream();
            int off=0;
            int size = dis.readInt();
            byte[] ba = new byte[size];
            dis.read(ba, off, size);
            dos.write(ba);
            dos.close();
            fout.close();
        }

< ""       (c:/other/)>