
org.lwapp.commons.file.Manifest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of lwapp-commons Show documentation
Show all versions of lwapp-commons Show documentation
Lwapp commons is a utility jar file with most common features needed in daily java programming.
The newest version!
package org.lwapp.commons.file;
import org.apache.commons.lang.StringUtils;
public enum Manifest {
MANIFEST_VERSION("Manifest-Version"), //
APPLICATION_IDENTITY("ApplicationSystemIdentity"), //
CREATED_DATE("CreatedDate"), //
DATA_FILENAME("DataFileName"), //
COMPRESSED_BZIP2_FILENAME("CompressedBZIP2FileName"), //
MANIFEST_FILENAME("ManifestFileName"), //
FOLDER_NAME("FileLocationOnDisk"), //
SHA512("Sha512"), //
IS_COMPRESSED("IsCompressed"), //
IS_ENCRYPTED("IsEncrypted"), //
TOTAL_BYTES("TotalBytes"), //
TOTAL_BYTESWRITTEN("TotalBytesWritten"), //
CHECKSUM("CheckSum"), //
;
public String property;
public static final String MANIFEST_VERSION_1_0 = "1.0";
Manifest(final String prop) {
property = prop;
}
public static Manifest getValue(final String prop) {
for (final Manifest mf : Manifest.values()) {
if (StringUtils.endsWithIgnoreCase(mf.property, prop)) {
return mf;
}
}
throw new IllegalArgumentException("Invalid Manifest property: " + prop + ".\nValid values are:" + Manifest.values());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy