org.apache.geronimo.deployment.util
Class UnpackedJarEntry

java.lang.Object
  extended byjava.util.zip.ZipEntry
      extended byjava.util.jar.JarEntry
          extended byorg.apache.geronimo.deployment.util.UnpackedJarEntry
All Implemented Interfaces:
Cloneable, ZipConstants

public class UnpackedJarEntry
extends JarEntry

Version:
$Rev: 355877 $ $Date: 2005-12-11 03:48:27 +0100 (Sun, 11 Dec 2005) $

Field Summary
 
Fields inherited from class java.util.zip.ZipEntry
CENATT, CENATX, CENCOM, CENCRC, CENDSK, CENEXT, CENFLG, CENHDR, CENHOW, CENLEN, CENNAM, CENOFF, CENSIG, CENSIZ, CENTIM, CENVEM, CENVER, DEFLATED, ENDCOM, ENDHDR, ENDOFF, ENDSIG, ENDSIZ, ENDSUB, ENDTOT, EXTCRC, EXTHDR, EXTLEN, EXTSIG, EXTSIZ, LOCCRC, LOCEXT, LOCFLG, LOCHDR, LOCHOW, LOCLEN, LOCNAM, LOCSIG, LOCSIZ, LOCTIM, LOCVER, STORED
 
Constructor Summary
UnpackedJarEntry(String name, File file, Manifest manifest)
           
 
Method Summary
 Object clone()
           
 Attributes getAttributes()
           
 Certificate[] getCertificates()
          Always return null.
 String getComment()
          Always returns null.
 long getCompressedSize()
          An unpacked jar is not compressed, so this method returns getSize().
 long getCrc()
           
 byte[] getExtra()
          Always returns null.
 File getFile()
           
 int getMethod()
           
 long getSize()
           
 long getTime()
           
 boolean isDirectory()
           
 void setComment(String comment)
          An unpacked jar is read only, so this method always throws an UnsupportedOperationException.
 void setCompressedSize(long compressedSize)
          An unpacked jar is read only, so this method always throws an UnsupportedOperationException.
 void setCrc(long crc)
          An unpacked jar is read only, so this method always throws an UnsupportedOperationException.
 void setExtra(byte[] extra)
          An unpacked jar is read only, so this method always throws an UnsupportedOperationException.
 void setMethod(int method)
          An unpacked jar is read only, so this method always throws an UnsupportedOperationException.
 void setSize(long size)
          An unpacked jar is read only, so this method always throws an UnsupportedOperationException.
 void setTime(long time)
          An unpacked jar is read only, so this method always throws an UnsupportedOperationException.
 
Methods inherited from class java.util.zip.ZipEntry
getName, hashCode, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UnpackedJarEntry

public UnpackedJarEntry(String name,
                        File file,
                        Manifest manifest)
Method Detail

getFile

public File getFile()

getAttributes

public Attributes getAttributes()
                         throws IOException
Throws:
IOException

getCertificates

public Certificate[] getCertificates()
Always return null. This could be implementd by verifing the signatures in the manifest file against the actual file, but we don't need this for Geronimo.

Returns:
null

setTime

public void setTime(long time)
             throws UnsupportedOperationException
An unpacked jar is read only, so this method always throws an UnsupportedOperationException.

Parameters:
time - ignored
Throws:
UnsupportedOperationException - always

getTime

public long getTime()

setSize

public void setSize(long size)
             throws UnsupportedOperationException
An unpacked jar is read only, so this method always throws an UnsupportedOperationException.

Parameters:
size - ignored
Throws:
UnsupportedOperationException - always

getSize

public long getSize()

getCompressedSize

public long getCompressedSize()
An unpacked jar is not compressed, so this method returns getSize().

Returns:
getSize()

setCompressedSize

public void setCompressedSize(long compressedSize)
An unpacked jar is read only, so this method always throws an UnsupportedOperationException.

Parameters:
compressedSize - ignored
Throws:
UnsupportedOperationException - always

getCrc

public long getCrc()

setCrc

public void setCrc(long crc)
An unpacked jar is read only, so this method always throws an UnsupportedOperationException.

Parameters:
crc - ignored
Throws:
UnsupportedOperationException - always

getMethod

public int getMethod()

setMethod

public void setMethod(int method)
An unpacked jar is read only, so this method always throws an UnsupportedOperationException.

Parameters:
method - ignored
Throws:
UnsupportedOperationException - always

getExtra

public byte[] getExtra()
Always returns null.

Returns:
null

setExtra

public void setExtra(byte[] extra)
An unpacked jar is read only, so this method always throws an UnsupportedOperationException.

Parameters:
extra - ignored
Throws:
UnsupportedOperationException - always

getComment

public String getComment()
Always returns null.

Returns:
null

setComment

public void setComment(String comment)
An unpacked jar is read only, so this method always throws an UnsupportedOperationException.

Parameters:
comment - ignored
Throws:
UnsupportedOperationException - always

isDirectory

public boolean isDirectory()

clone

public Object clone()


Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.