FileDocCategorySizeDatePackage
ExternalizableZipFile.javaAPI DocExample1171Sun Mar 28 19:07:58 BST 1999None

ExternalizableZipFile

public class ExternalizableZipFile extends ZipFile implements Externalizable

Fields Summary
Constructors Summary
public ExternalizableZipFile(String filename)

    super(filename);
  
public ExternalizableZipFile(File file)

    super(file);
  
Methods Summary
public static voidmain(java.lang.String[] args)


    try {
      SerializableZipFileNot szf = new SerializableZipFileNot(args[0]);
      ByteArrayOutputStream bout = new ByteArrayOutputStream();
      ObjectOutputStream oout = new ObjectOutputStream(bout);
      oout.writeObject(szf);
      oout.close();
      System.out.println("Wrote object!");

      ByteArrayInputStream bin = new 
       ByteArrayInputStream(bout.toByteArray());
      ObjectInputStream oin = new ObjectInputStream(bin);
      Object o = oin.readObject();
      System.out.println("Read object!");
    }
    catch (Exception e) {
      e.printStackTrace();
    }

  
public voidreadExternal(java.io.ObjectInput in)

   
  
public voidwriteExternal(java.io.ObjectOutput out)