com.jn.langx.util.jar.multiplelevel.FileHeader Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of langx-java Show documentation
Show all versions of langx-java Show documentation
Java lang extensions for java6+, a supplement to , replacement of a Guava, commons-lang.
Core utilities, Collection utilities, IO utilities, Cache, Configuration library ...
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();
}