public enum CompressionConfigValue extends Enum<CompressionConfigValue> implements CompressionFactory
NamedFactory
for the Compression
.BuiltinFactory.Utils
Modifier and Type | Field and Description |
---|---|
static Set<CompressionConfigValue> |
VALUES |
BY_NAME_COMPARATOR, NAME_EXTRACTOR
FALSE, 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.
|
public 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 NamedResource
public final Compression create()
create
in interface Factory<Compression>
public boolean isSupported()
isSupported
in interface OptionalFeature
public final String toString()
toString
in class Enum<CompressionConfigValue>
public boolean isDelayed()
CompressionInformation
isDelayed
in interface CompressionInformation
public boolean isCompressionExecuted()
isCompressionExecuted
in interface CompressionInformation
true
if there is any compression executed by
this "compressor" - special case for 'none'public static CompressionConfigValue fromName(String n)
Copyright © 2008–2016 The Apache Software Foundation. All rights reserved.