public class LockingAndX
extends java.lang.Object
Contains constants used by the LockingAndX SMB/CIFS request, plus methods for decoding the flags values.
Modifier and Type | Field and Description |
---|---|
static int |
Cancel |
static int |
ChangeType |
static int |
LargeFiles |
static int |
Level2OpLock |
static int |
OplockBreak |
static int |
SharedLock |
Constructor and Description |
---|
LockingAndX() |
Modifier and Type | Method and Description |
---|---|
static boolean |
hasCancel(int flags)
Check if the cancel flag is set
|
static boolean |
hasChangeType(int flags)
Check if the change type flag is set
|
static boolean |
hasLargeFiles(int flags)
Check if the large files flag is set
|
static boolean |
hasLevelIIOplock(int flags)
Check if the LevelII oplock flag is set
|
static boolean |
hasOplockBreak(int flags)
Check if the oplock break flag is set
|
static boolean |
hasSharedLock(int flags)
Check if the shared lock flag is set
|
static boolean |
isNormalLockUnlock(int flags)
Check if this is a normal lock/unlock, ie.
|
public static final int SharedLock
public static final int OplockBreak
public static final int ChangeType
public static final int Cancel
public static final int LargeFiles
public static final int Level2OpLock
public static final boolean isNormalLockUnlock(int flags)
flags
- public static final boolean hasLargeFiles(int flags)
flags
- intpublic static final boolean hasSharedLock(int flags)
flags
- intpublic static final boolean hasOplockBreak(int flags)
flags
- intpublic static final boolean hasLevelIIOplock(int flags)
public static final boolean hasChangeType(int flags)
flags
- intpublic static final boolean hasCancel(int flags)
flags
- intCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.