Class JarDescriptor


  • @Internal
    public class JarDescriptor
    extends Object
    Provides information about a single Jar
    Since:
    3.3
    • Constructor Detail

      • JarDescriptor

        public JarDescriptor​(String name,
                             com.google.common.io.ByteSource inputSupplier)
      • JarDescriptor

        public JarDescriptor​(@NotNull
                             @NotNull File file,
                             com.google.common.io.ByteSource inputSupplier)
      • JarDescriptor

        public JarDescriptor​(@Nullable
                             @Nullable File file,
                             String name,
                             com.google.common.io.ByteSource inputSupplier)
    • 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
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object