Class JarDescriptor
- java.lang.Object
-
- com.atlassian.bamboo.agent.classserver.JarDescriptor
-
@Internal public class JarDescriptor extends Object
Provides information about a single Jar- Since:
- 3.3
-
-
Constructor Summary
Constructors Constructor Description JarDescriptor(@NotNull File file, com.google.common.io.ByteSource inputSupplier)JarDescriptor(@Nullable File file, String name, com.google.common.io.ByteSource inputSupplier)JarDescriptor(String name, com.google.common.io.ByteSource inputSupplier)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)longgetChecksum()@NotNull FileHashDescriptorgetFileHashDescriptor()@NotNull InputStreamgetInputStream()Optional<Long>getLastModified()Optional<Long>getLength()@NotNull StringgetName()inthashCode()StringtoString()
-
-
-
Method Detail
-
getName
@NotNull public @NotNull String getName()
- Returns:
- name of the Jar file
-
getChecksum
public long getChecksum()
- Returns:
- the Adler32 checksum of the Jar file
-
getInputStream
@NotNull public @NotNull InputStream getInputStream() throws IOException
- 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
@NotNull public @NotNull FileHashDescriptor getFileHashDescriptor()
- Returns:
- fileHashDescriptor for the
JarDescriptor
-
-