Class ZipItem

java.lang.Object
com.sun.enterprise.util.zip.ZipItem

public class ZipItem extends Object
This class encapsulates the two pieces of information required to make a ZipEntry -- the "real" path, and the path you want to appear in the zip file
  • Constructor Details

    • ZipItem

      public ZipItem(File file, String name) throws ZipFileException
      Construct a ZipItem
      Parameters:
      file - The actual file
      name - The zip entry name - i.e. the relative path in the zip file
      Throws:
      ZipFileException
  • Method Details

    • toString

      public String toString()
      Returns a String represenation of the real filename and the zip entry name.
      Overrides:
      toString in class Object
      Returns:
      String with the path and the zip entry name
    • getName

      public String getName()
      Returns the zip entry name
      Returns:
      the zip entry name
    • getFile

      public File getFile()
      Returns the actual file
      Returns:
      the actual file