~ubuntu-branches/ubuntu/saucy/libcommons-compress-java/saucy-proposed

« back to all changes in this revision

Viewing changes to src/main/java/org/apache/commons/compress/archivers/jar/JarArchiveInputStream.java

  • Committer: Bazaar Package Importer
  • Author(s): Torsten Werner
  • Date: 2011-08-07 01:56:15 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20110807015615-cvbmhuv10g12fpz1
Tags: 1.2-1
* New upstream release
* Clean up Depends and Suggests fields.
* Switch to source format 3.0.

Show diffs side-by-side

added added

removed removed

Lines of Context:
45
45
        return getNextJarEntry();
46
46
    }
47
47
 
 
48
    /**
 
49
     * Checks if the signature matches what is expected for a jar file
 
50
     * (in this case it is the same as for a zip file).
 
51
     * 
 
52
     * @param signature
 
53
     *            the bytes to check
 
54
     * @param length
 
55
     *            the number of bytes to check
 
56
     * @return true, if this stream is a jar archive stream, false otherwise
 
57
     */
48
58
    public static boolean matches(byte[] signature, int length ) {
49
59
        return ZipArchiveInputStream.matches(signature, length);
50
60
    }