org.apache.maven.shared.jar
Class JarData

java.lang.Object
  extended by org.apache.maven.shared.jar.JarData

public final class JarData
extends java.lang.Object

Class that contains details of a single JAR file and it's entries.


Field Summary
private  java.lang.String bytecodeHash
          The hashcode for the file's class data contents.
private  java.util.List entries
          The JAR entries.
private  java.io.File file
          The JAR file.
private  java.lang.String fileHash
          The hashcode for the entire file's contents.
private  JarClasses jarClasses
          Information about the JAR's classes.
private  JarIdentification jarIdentification
          Information about the JAR's identifying features.
private  java.util.jar.Manifest manifest
          The JAR's manifest.
private  boolean sealed
          Whether the JAR file is sealed.
 
Constructor Summary
JarData(java.io.File file, java.util.jar.Manifest manifest, java.util.List entries)
          Constructor.
 
Method Summary
 java.lang.String getBytecodeHash()
           
 java.util.List getEntries()
           
 java.io.File getFile()
           
 java.lang.String getFileHash()
           
 JarClasses getJarClasses()
           
 JarIdentification getJarIdentification()
           
 java.lang.String getJdkRevision()
           
 java.util.jar.Manifest getManifest()
           
 int getNumClasses()
           
 int getNumEntries()
           
 int getNumPackages()
           
 boolean isDebugPresent()
           
 boolean isSealed()
           
 void setBytecodeHash(java.lang.String bytecodeHash)
           
 void setFileHash(java.lang.String fileHash)
           
 void setJarClasses(JarClasses jarClasses)
           
 void setJarIdentification(JarIdentification jarIdentification)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

file

private final java.io.File file
The JAR file.


sealed

private final boolean sealed
Whether the JAR file is sealed.


fileHash

private java.lang.String fileHash
The hashcode for the entire file's contents.


bytecodeHash

private java.lang.String bytecodeHash
The hashcode for the file's class data contents.


manifest

private final java.util.jar.Manifest manifest
The JAR's manifest.


jarClasses

private JarClasses jarClasses
Information about the JAR's classes.


entries

private final java.util.List entries
The JAR entries.


jarIdentification

private JarIdentification jarIdentification
Information about the JAR's identifying features.

Constructor Detail

JarData

public JarData(java.io.File file,
               java.util.jar.Manifest manifest,
               java.util.List entries)
Constructor.

Parameters:
file - the JAR file
manifest - the JAR manifest
entries - the JAR entries
Method Detail

getEntries

public java.util.List getEntries()

getManifest

public java.util.jar.Manifest getManifest()

getFile

public java.io.File getFile()

isSealed

public boolean isSealed()

setFileHash

public void setFileHash(java.lang.String fileHash)

getFileHash

public java.lang.String getFileHash()

setBytecodeHash

public void setBytecodeHash(java.lang.String bytecodeHash)

getBytecodeHash

public java.lang.String getBytecodeHash()

isDebugPresent

public boolean isDebugPresent()

setJarClasses

public void setJarClasses(JarClasses jarClasses)

getNumEntries

public int getNumEntries()

getNumClasses

public int getNumClasses()

getNumPackages

public int getNumPackages()

getJdkRevision

public java.lang.String getJdkRevision()

setJarIdentification

public void setJarIdentification(JarIdentification jarIdentification)

getJarIdentification

public JarIdentification getJarIdentification()

getJarClasses

public JarClasses getJarClasses()