All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.jn.langx.util.jar.multiplelevel.FileHeader Maven / Gradle / Ivy

Go to download

Java lang extensions for java6+, a supplement to , replacement of a Guava, commons-lang. Core utilities, Collection utilities, IO utilities, Cache, Configuration library ...

There is a newer version: 4.8.2
Show newest version
package com.jn.langx.util.jar.multiplelevel;

import java.util.zip.ZipEntry;

/**
 * A file header record that has been loaded from a Jar file.
 *
 * @see JarEntry
 * @see CentralDirectoryFileHeader
 */
interface FileHeader {

    /**
     * Returns {@code true} if the header has the given name.
     *
     * @param name   the name to test
     * @param suffix an additional suffix (or {@code 0})
     * @return {@code true} if the header has the given name
     */
    boolean hasName(CharSequence name, char suffix);

    /**
     * Return the offset of the load file header within the archive data.
     *
     * @return the local header offset
     */
    long getLocalHeaderOffset();

    /**
     * Return the compressed size of the entry.
     *
     * @return the compressed size.
     */
    long getCompressedSize();

    /**
     * Return the uncompressed size of the entry.
     *
     * @return the uncompressed size.
     */
    long getSize();

    /**
     * Return the method used to compress the data.
     *
     * @return the zip compression method
     * @see ZipEntry#STORED
     * @see ZipEntry#DEFLATED
     */
    int getMethod();

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy