Class JarDescriptor
java.lang.Object
com.atlassian.bamboo.agent.classserver.JarDescriptor
Provides information about a single Jar
- Since:
- 3.3
-
Constructor Summary
ConstructorsConstructorDescriptionJarDescriptor(@NotNull File file, ByteSource inputSupplier) JarDescriptor(@Nullable File file, String name, ByteSource inputSupplier) JarDescriptor(String name, ByteSource inputSupplier) -
Method Summary
Modifier and TypeMethodDescriptionbooleanlong@NotNull FileHashDescriptor@NotNull InputStream@NotNull StringgetName()inthashCode()toString()
-
Constructor Details
-
JarDescriptor
-
JarDescriptor
-
JarDescriptor
-
-
Method Details
-
getName
- Returns:
- name of the Jar file
-
getChecksum
public long getChecksum()- Returns:
- the Adler32 checksum of the Jar file
-
getInputStream
- Returns:
- inputStream of the jar file contents. Needs to be closed.
- Throws:
IOException- if a stream to the jar file could not be created
-
getFileHashDescriptor
- Returns:
- fileHashDescriptor for the
JarDescriptor
-
equals
-
hashCode
public int hashCode() -
toString
-
getLength
-
getLastModified
-