com.atlassian.bamboo.agent.classserver
Class JarDescriptor
java.lang.Object
com.atlassian.bamboo.agent.classserver.JarDescriptor
public class JarDescriptor
- extends java.lang.Object
Provides information about a single Jar
- Since:
- 3.3
Constructor Summary |
JarDescriptor(java.lang.String name,
com.google.common.io.InputSupplier<java.io.InputStream> inputSupplier)
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
JarDescriptor
public JarDescriptor(java.lang.String name,
com.google.common.io.InputSupplier<java.io.InputStream> inputSupplier)
getName
@NotNull
public java.lang.String getName()
- Returns:
- name of the Jar file
getChecksum
public long getChecksum()
- Returns:
- the Adler32 checksum of the Jar file
getInputStream
@NotNull
public java.io.InputStream getInputStream()
throws java.io.IOException
- Returns:
- inputStream of the jar file contents
- Throws:
java.io.IOException
- if a stream to the jar file could not be created
getFileHashDescriptor
@NotNull
public FileHashDescriptor getFileHashDescriptor()
- Returns:
- fileHashDescriptor for the
JarDescriptor
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 2012 Atlassian. All Rights Reserved.