Class JarArchiveInputStream

    • Constructor Detail

      • JarArchiveInputStream

        public JarArchiveInputStream(InputStream inputStream)
    • Method Detail

      • matches

        public static boolean matches(byte[] signature,
                                      int length)
        Checks if the signature matches what is expected for a jar file (in this case it is the same as for a zip file).
        Parameters:
        signature - the bytes to check
        length - the number of bytes to check
        Returns:
        true, if this stream is a jar archive stream, false otherwise