com.sun.enterprise.util.zip
Class ZipItem

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

public class ZipItem
extends java.lang.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 Summary
ZipItem(java.io.File file, java.lang.String name)
          Construct a ZipItem
 
Method Summary
 java.io.File getFile()
          Returns the actual file
 java.lang.String getName()
          Returns the zip entry name
 java.lang.String toString()
          Returns a String represenation of the real filename and the zip entry name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ZipItem

public ZipItem(java.io.File file,
               java.lang.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 Detail

toString

public java.lang.String toString()
Returns a String represenation of the real filename and the zip entry name.

Overrides:
toString in class java.lang.Object
Returns:
String with the path and the zip entry name

getName

public java.lang.String getName()
Returns the zip entry name

Returns:
the zip entry name

getFile

public java.io.File getFile()
Returns the actual file

Returns:
the actual file


Copyright © 2012 GlassFish Community. All Rights Reserved.