public enum EAS4CompressionMode extends Enum<EAS4CompressionMode> implements com.helger.commons.id.IHasID<String>
| Enum Constant and Description |
|---|
GZIP
GZip compression mode
|
| Modifier and Type | Method and Description |
|---|---|
abstract OutputStream |
getCompressStream(OutputStream aOS)
Get an
OutputStream to compress the provided OutputStream. |
abstract InputStream |
getDecompressStream(InputStream aIS)
Get an
InputStream to decompress the provided InputStream. |
String |
getFileExtension() |
static EAS4CompressionMode |
getFromIDOrNull(String sID) |
static EAS4CompressionMode |
getFromMimeTypeStringOrNull(String sMimeType) |
String |
getID() |
com.helger.commons.mime.IMimeType |
getMimeType() |
String |
getMimeTypeAsString() |
static EAS4CompressionMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EAS4CompressionMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EAS4CompressionMode GZIP
public static EAS4CompressionMode[] values()
for (EAS4CompressionMode c : EAS4CompressionMode.values()) System.out.println(c);
public static EAS4CompressionMode valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is null@Nonnull @Nonempty public String getID()
getID in interface com.helger.commons.id.IHasID<String>@Nonnull public com.helger.commons.mime.IMimeType getMimeType()
null.@Nonnull @Nonempty public String getMimeTypeAsString()
null.@Nonnull @Nonempty public String getFileExtension()
@Nonnull public abstract InputStream getDecompressStream(@Nonnull InputStream aIS) throws IOException
InputStream to decompress the provided InputStream.aIS - The source InputStream. May not be null.InputStreamIOException - In case of IO error@Nonnull public abstract OutputStream getCompressStream(@Nonnull OutputStream aOS) throws IOException
OutputStream to compress the provided OutputStream.aOS - The source OutputStream. May not be null.OutputStreamIOException - In case of IO error@Nullable public static EAS4CompressionMode getFromMimeTypeStringOrNull(@Nullable String sMimeType)
@Nullable public static EAS4CompressionMode getFromIDOrNull(String sID)
Copyright © 2015–2020 Philip Helger. All rights reserved.