public enum CompressionConfigValue extends Enum<CompressionConfigValue> implements CompressionFactory
NamedFactory for the Compression.| Modifier and Type | Field and Description |
|---|---|
static Set<CompressionConfigValue> |
VALUES |
BY_NAME_COMPARATOR, NAME_EXTRACTORFALSE, TRUE| Modifier and Type | Method and Description |
|---|---|
Compression |
create() |
static CompressionConfigValue |
fromName(String n) |
String |
getName() |
boolean |
isCompressionExecuted() |
boolean |
isDelayed()
Delayed compression is an Open-SSH specific feature which informs both the client and server to not compress data
before the session has been authenticated.
|
boolean |
isSupported() |
String |
toString() |
static CompressionConfigValue |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CompressionConfigValue[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOfsetUpFactoriescreate, setUpBuiltinFactories, setUpTransformedFactoriesfindByName, findFirstMatchByName, getNameList, getNames, ofName, removeByName, safeCompareByNameall, any, ofpublic static final CompressionConfigValue YES
public static final CompressionConfigValue NO
public static final CompressionConfigValue DELAYED
public static final Set<CompressionConfigValue> VALUES
public static CompressionConfigValue[] values()
for (CompressionConfigValue c : CompressionConfigValue.values()) System.out.println(c);
public static CompressionConfigValue 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 nullpublic final String getName()
getName in interface NamedResourcepublic final Compression create()
create in interface Factory<Compression>public boolean isSupported()
isSupported in interface OptionalFeaturepublic final String toString()
toString in class Enum<CompressionConfigValue>public boolean isDelayed()
CompressionInformationisDelayed in interface CompressionInformationpublic boolean isCompressionExecuted()
isCompressionExecuted in interface CompressionInformationtrue if there is any compression executed by this "compressor" - special case for
'none'public static CompressionConfigValue fromName(String n)
Copyright © 2018–2021 The Apache Software Foundation. All rights reserved.