Index: C:/harmony/pack200workspace/Pack200 working/src/main/java5/org/apache/harmony/unpack200/Pack200UnpackerAdapter.java =================================================================== --- C:/harmony/pack200workspace/Pack200 working/src/main/java5/org/apache/harmony/unpack200/Pack200UnpackerAdapter.java (revision 651261) +++ C:/harmony/pack200workspace/Pack200 working/src/main/java5/org/apache/harmony/unpack200/Pack200UnpackerAdapter.java (working copy) @@ -46,13 +46,8 @@ "Must specify both input and output streams"); completed(0); try { - while (in.available() > 0) { - new Segment().unpack(in, out); - out.flush(); - } - } catch (Pack200Exception e) { - throw new IOException("Failed to unpack Jar:" + String.valueOf(e)); - } + Archive archive = new Archive(in, out); + archive.unpack(); completed(1); in.close(); }