public enum DialectVersion extends Enum<DialectVersion>
| Enum Constant and Description |
|---|
SMB1
Legacy SMB1/CIFS
|
SMB202
SMB 2.02 - Windows Vista+
|
SMB210
SMB 2.1 - Windows 7/Server 2008R2
|
SMB300
SMB 3.0 - Windows 8/Server 2012
|
SMB302
SMB 3.0.2 - Windows 8.1/Server 2012R2
|
SMB311
SMB 3.1.1 - Windows 10/Server 2016
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
atLeast(DialectVersion v) |
boolean |
atMost(DialectVersion v) |
int |
getDialect() |
boolean |
isSMB2() |
static DialectVersion |
max(DialectVersion a,
DialectVersion b) |
static DialectVersion |
min(DialectVersion a,
DialectVersion b) |
static Set<DialectVersion> |
range(DialectVersion min,
DialectVersion max) |
static DialectVersion |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DialectVersion[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DialectVersion SMB1
public static final DialectVersion SMB202
public static final DialectVersion SMB210
public static final DialectVersion SMB300
public static final DialectVersion SMB302
public static final DialectVersion SMB311
public static DialectVersion[] values()
for (DialectVersion c : DialectVersion.values()) System.out.println(c);
public static DialectVersion 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 boolean isSMB2()
public final int getDialect()
public boolean atLeast(DialectVersion v)
v - public boolean atMost(DialectVersion v)
v - public static DialectVersion min(DialectVersion a, DialectVersion b)
a - b - public static DialectVersion max(DialectVersion a, DialectVersion b)
a - b - public static Set<DialectVersion> range(DialectVersion min, DialectVersion max)
min - may be null for open endmax - may be null for open endCopyright © 2021. All rights reserved.