Package jcifs
Interface SmbConstants
-
- All Known Implementing Classes:
SmbFile
,SmbNamedPipe
public interface SmbConstants
Utility class holding several protocol constrants- Author:
- mbechler
-
-
Field Summary
Fields Modifier and Type Field Description static int
ATTR_ARCHIVE
Files is marked to be archivedstatic int
ATTR_COMPRESSED
static int
ATTR_DIRECTORY
File is a directorystatic int
ATTR_HIDDEN
File is marked hiddenstatic int
ATTR_NORMAL
static int
ATTR_READONLY
File is marked read-onlystatic int
ATTR_SYSTEM
File is marked a system filestatic int
ATTR_TEMPORARY
static int
ATTR_VOLUME
File is marked a volumestatic int
CAP_DFS
static int
CAP_EXTENDED_SECURITY
static int
CAP_LARGE_FILES
static int
CAP_LARGE_READX
static int
CAP_LARGE_WRITEX
static int
CAP_LEVEL_II_OPLOCKS
static int
CAP_LOCK_AND_READ
static int
CAP_MPX_MODE
static int
CAP_NONE
static int
CAP_NT_FIND
static int
CAP_NT_SMBS
static int
CAP_RAW_MODE
static int
CAP_RPC_REMOTE_APIS
static int
CAP_STATUS32
static int
CAP_UNICODE
static int
CMD_OFFSET
static int
DEFAULT_CONN_TIMEOUT
static int
DEFAULT_MAX_MPX_COUNT
static int
DEFAULT_NOTIFY_BUF_SIZE
static String
DEFAULT_OEM_ENCODING
static int
DEFAULT_PORT
static int
DEFAULT_RCV_BUF_SIZE
static int
DEFAULT_RESPONSE_TIMEOUT
static int
DEFAULT_SHARING
Default sharing mode for filesstatic int
DEFAULT_SND_BUF_SIZE
static int
DEFAULT_SO_TIMEOUT
static int
DEFAULT_SSN_LIMIT
static int
DELETE
static int
ERROR_CODE_OFFSET
static int
FILE_APPEND_DATA
static int
FILE_DELETE
static int
FILE_EXECUTE
static int
FILE_NO_SHARE
When specified as the shareAccess constructor parameter, other SMB clients (including other threads making calls into jCIFS) will not be permitted to access the target file and will receive "The file is being accessed by another process" message.static int
FILE_READ_ATTRIBUTES
static int
FILE_READ_DATA
static int
FILE_READ_EA
static int
FILE_SHARE_DELETE
When specified as the shareAccess constructor parameter, other SMB clients will be permitted to delete the target file while this file is open.static int
FILE_SHARE_READ
When specified as the shareAccess constructor parameter, other SMB clients will be permitted to read from the target file while this file is open.static int
FILE_SHARE_WRITE
When specified as the shareAccess constructor parameter, other SMB clients will be permitted to write to the target file while this file is open.static int
FILE_WRITE_ATTRIBUTES
static int
FILE_WRITE_DATA
static int
FILE_WRITE_EA
static int
FLAGS_COPY_SOURCE_MODE_ASCII
static int
FLAGS_COPY_TARGET_MODE_ASCII
static int
FLAGS_LOCK_AND_READ_WRITE_AND_UNLOCK
static int
FLAGS_NONE
static int
FLAGS_NOTIFY_OF_MODIFY_ACTION
static int
FLAGS_OFFSET
static int
FLAGS_OPLOCK_REQUESTED_OR_GRANTED
static int
FLAGS_PATH_NAMES_CANONICALIZED
static int
FLAGS_PATH_NAMES_CASELESS
static int
FLAGS_RECEIVE_BUFFER_POSTED
static int
FLAGS_RESPONSE
static int
FLAGS_TARGET_MUST_BE_DIRECTORY
static int
FLAGS_TARGET_MUST_BE_FILE
static int
FLAGS_TREE_COPY
static int
FLAGS_VERIFY_ALL_WRITES
static int
FLAGS2_EXTENDED_ATTRIBUTES
static int
FLAGS2_EXTENDED_SECURITY_NEGOTIATION
static int
FLAGS2_LONG_FILENAMES
static int
FLAGS2_NONE
static int
FLAGS2_PERMIT_READ_IF_EXECUTE_PERM
static int
FLAGS2_RESOLVE_PATHS_IN_DFS
static int
FLAGS2_SECURITY_REQUIRE_SIGNATURES
static int
FLAGS2_SECURITY_SIGNATURES
static int
FLAGS2_STATUS32
static int
FLAGS2_UNICODE
static int
FOREVER
static int
GENERIC_ALL
static int
GENERIC_EXECUTE
static int
GENERIC_READ
static int
GENERIC_WRITE
static long
MILLISECONDS_BETWEEN_1970_AND_1601
static int
O_APPEND
static int
O_CREAT
static int
O_EXCL
static int
O_RDONLY
static int
O_RDWR
static int
O_TRUNC
static int
O_WRONLY
static int
OPEN_FUNCTION_FAIL_IF_EXISTS
static int
OPEN_FUNCTION_OVERWRITE_IF_EXISTS
static int
READ_CONTROL
static int
SECURITY_SHARE
static int
SECURITY_USER
static int
SIGNATURE_OFFSET
static int
SMB1_HEADER_LENGTH
static int
SYNCHRONIZE
static int
TID_OFFSET
static int
TYPE_COMM
Returned bySmbResource.getType()
if the resource this SmbFile represents is a communications device.static int
TYPE_FILESYSTEM
Returned bySmbResource.getType()
if the resource this SmbFile represents is a regular file or directory.static int
TYPE_NAMED_PIPE
Returned bySmbResource.getType()
if the resource this SmbFile represents is a named pipe.static int
TYPE_PRINTER
Returned bySmbResource.getType()
if the resource this SmbFile represents is a printer.static int
TYPE_SERVER
Returned bySmbResource.getType()
if the resource this SmbFile represents is a server.static int
TYPE_SHARE
Returned bySmbResource.getType()
if the resource this SmbFile represents is a share.static int
TYPE_WORKGROUP
Returned bySmbResource.getType()
if the resource this SmbFile represents is a workgroup.static int
WRITE_DAC
static int
WRITE_OWNER
-
-
-
Field Detail
-
DEFAULT_PORT
static final int DEFAULT_PORT
- See Also:
- Constant Field Values
-
DEFAULT_MAX_MPX_COUNT
static final int DEFAULT_MAX_MPX_COUNT
- See Also:
- Constant Field Values
-
DEFAULT_RESPONSE_TIMEOUT
static final int DEFAULT_RESPONSE_TIMEOUT
- See Also:
- Constant Field Values
-
DEFAULT_SO_TIMEOUT
static final int DEFAULT_SO_TIMEOUT
- See Also:
- Constant Field Values
-
DEFAULT_RCV_BUF_SIZE
static final int DEFAULT_RCV_BUF_SIZE
- See Also:
- Constant Field Values
-
DEFAULT_SND_BUF_SIZE
static final int DEFAULT_SND_BUF_SIZE
- See Also:
- Constant Field Values
-
DEFAULT_NOTIFY_BUF_SIZE
static final int DEFAULT_NOTIFY_BUF_SIZE
- See Also:
- Constant Field Values
-
DEFAULT_SSN_LIMIT
static final int DEFAULT_SSN_LIMIT
- See Also:
- Constant Field Values
-
DEFAULT_CONN_TIMEOUT
static final int DEFAULT_CONN_TIMEOUT
- See Also:
- Constant Field Values
-
FLAGS_NONE
static final int FLAGS_NONE
- See Also:
- Constant Field Values
-
FLAGS_LOCK_AND_READ_WRITE_AND_UNLOCK
static final int FLAGS_LOCK_AND_READ_WRITE_AND_UNLOCK
- See Also:
- Constant Field Values
-
FLAGS_RECEIVE_BUFFER_POSTED
static final int FLAGS_RECEIVE_BUFFER_POSTED
- See Also:
- Constant Field Values
-
FLAGS_PATH_NAMES_CASELESS
static final int FLAGS_PATH_NAMES_CASELESS
- See Also:
- Constant Field Values
-
FLAGS_PATH_NAMES_CANONICALIZED
static final int FLAGS_PATH_NAMES_CANONICALIZED
- See Also:
- Constant Field Values
-
FLAGS_OPLOCK_REQUESTED_OR_GRANTED
static final int FLAGS_OPLOCK_REQUESTED_OR_GRANTED
- See Also:
- Constant Field Values
-
FLAGS_NOTIFY_OF_MODIFY_ACTION
static final int FLAGS_NOTIFY_OF_MODIFY_ACTION
- See Also:
- Constant Field Values
-
FLAGS_RESPONSE
static final int FLAGS_RESPONSE
- See Also:
- Constant Field Values
-
FLAGS2_NONE
static final int FLAGS2_NONE
- See Also:
- Constant Field Values
-
FLAGS2_LONG_FILENAMES
static final int FLAGS2_LONG_FILENAMES
- See Also:
- Constant Field Values
-
FLAGS2_EXTENDED_ATTRIBUTES
static final int FLAGS2_EXTENDED_ATTRIBUTES
- See Also:
- Constant Field Values
-
FLAGS2_SECURITY_SIGNATURES
static final int FLAGS2_SECURITY_SIGNATURES
- See Also:
- Constant Field Values
-
FLAGS2_SECURITY_REQUIRE_SIGNATURES
static final int FLAGS2_SECURITY_REQUIRE_SIGNATURES
- See Also:
- Constant Field Values
-
FLAGS2_EXTENDED_SECURITY_NEGOTIATION
static final int FLAGS2_EXTENDED_SECURITY_NEGOTIATION
- See Also:
- Constant Field Values
-
FLAGS2_RESOLVE_PATHS_IN_DFS
static final int FLAGS2_RESOLVE_PATHS_IN_DFS
- See Also:
- Constant Field Values
-
FLAGS2_PERMIT_READ_IF_EXECUTE_PERM
static final int FLAGS2_PERMIT_READ_IF_EXECUTE_PERM
- See Also:
- Constant Field Values
-
FLAGS2_STATUS32
static final int FLAGS2_STATUS32
- See Also:
- Constant Field Values
-
FLAGS2_UNICODE
static final int FLAGS2_UNICODE
- See Also:
- Constant Field Values
-
CAP_NONE
static final int CAP_NONE
- See Also:
- Constant Field Values
-
CAP_RAW_MODE
static final int CAP_RAW_MODE
- See Also:
- Constant Field Values
-
CAP_MPX_MODE
static final int CAP_MPX_MODE
- See Also:
- Constant Field Values
-
CAP_UNICODE
static final int CAP_UNICODE
- See Also:
- Constant Field Values
-
CAP_LARGE_FILES
static final int CAP_LARGE_FILES
- See Also:
- Constant Field Values
-
CAP_NT_SMBS
static final int CAP_NT_SMBS
- See Also:
- Constant Field Values
-
CAP_RPC_REMOTE_APIS
static final int CAP_RPC_REMOTE_APIS
- See Also:
- Constant Field Values
-
CAP_STATUS32
static final int CAP_STATUS32
- See Also:
- Constant Field Values
-
CAP_LEVEL_II_OPLOCKS
static final int CAP_LEVEL_II_OPLOCKS
- See Also:
- Constant Field Values
-
CAP_LOCK_AND_READ
static final int CAP_LOCK_AND_READ
- See Also:
- Constant Field Values
-
CAP_NT_FIND
static final int CAP_NT_FIND
- See Also:
- Constant Field Values
-
CAP_DFS
static final int CAP_DFS
- See Also:
- Constant Field Values
-
CAP_LARGE_READX
static final int CAP_LARGE_READX
- See Also:
- Constant Field Values
-
CAP_LARGE_WRITEX
static final int CAP_LARGE_WRITEX
- See Also:
- Constant Field Values
-
CAP_EXTENDED_SECURITY
static final int CAP_EXTENDED_SECURITY
- See Also:
- Constant Field Values
-
ATTR_READONLY
static final int ATTR_READONLY
File is marked read-only- See Also:
- Constant Field Values
-
ATTR_HIDDEN
static final int ATTR_HIDDEN
File is marked hidden- See Also:
- Constant Field Values
-
ATTR_SYSTEM
static final int ATTR_SYSTEM
File is marked a system file- See Also:
- Constant Field Values
-
ATTR_VOLUME
static final int ATTR_VOLUME
File is marked a volume- See Also:
- Constant Field Values
-
ATTR_DIRECTORY
static final int ATTR_DIRECTORY
File is a directory- See Also:
- Constant Field Values
-
ATTR_ARCHIVE
static final int ATTR_ARCHIVE
Files is marked to be archived- See Also:
- Constant Field Values
-
ATTR_COMPRESSED
static final int ATTR_COMPRESSED
- See Also:
- Constant Field Values
-
ATTR_NORMAL
static final int ATTR_NORMAL
- See Also:
- Constant Field Values
-
ATTR_TEMPORARY
static final int ATTR_TEMPORARY
- See Also:
- Constant Field Values
-
FILE_READ_DATA
static final int FILE_READ_DATA
- See Also:
- Constant Field Values
-
FILE_WRITE_DATA
static final int FILE_WRITE_DATA
- See Also:
- Constant Field Values
-
FILE_APPEND_DATA
static final int FILE_APPEND_DATA
- See Also:
- Constant Field Values
-
FILE_READ_EA
static final int FILE_READ_EA
- See Also:
- Constant Field Values
-
FILE_WRITE_EA
static final int FILE_WRITE_EA
- See Also:
- Constant Field Values
-
FILE_EXECUTE
static final int FILE_EXECUTE
- See Also:
- Constant Field Values
-
FILE_DELETE
static final int FILE_DELETE
- See Also:
- Constant Field Values
-
FILE_READ_ATTRIBUTES
static final int FILE_READ_ATTRIBUTES
- See Also:
- Constant Field Values
-
FILE_WRITE_ATTRIBUTES
static final int FILE_WRITE_ATTRIBUTES
- See Also:
- Constant Field Values
-
DELETE
static final int DELETE
- See Also:
- Constant Field Values
-
READ_CONTROL
static final int READ_CONTROL
- See Also:
- Constant Field Values
-
WRITE_DAC
static final int WRITE_DAC
- See Also:
- Constant Field Values
-
WRITE_OWNER
static final int WRITE_OWNER
- See Also:
- Constant Field Values
-
SYNCHRONIZE
static final int SYNCHRONIZE
- See Also:
- Constant Field Values
-
GENERIC_ALL
static final int GENERIC_ALL
- See Also:
- Constant Field Values
-
GENERIC_EXECUTE
static final int GENERIC_EXECUTE
- See Also:
- Constant Field Values
-
GENERIC_WRITE
static final int GENERIC_WRITE
- See Also:
- Constant Field Values
-
GENERIC_READ
static final int GENERIC_READ
- See Also:
- Constant Field Values
-
FLAGS_TARGET_MUST_BE_FILE
static final int FLAGS_TARGET_MUST_BE_FILE
- See Also:
- Constant Field Values
-
FLAGS_TARGET_MUST_BE_DIRECTORY
static final int FLAGS_TARGET_MUST_BE_DIRECTORY
- See Also:
- Constant Field Values
-
FLAGS_COPY_TARGET_MODE_ASCII
static final int FLAGS_COPY_TARGET_MODE_ASCII
- See Also:
- Constant Field Values
-
FLAGS_COPY_SOURCE_MODE_ASCII
static final int FLAGS_COPY_SOURCE_MODE_ASCII
- See Also:
- Constant Field Values
-
FLAGS_VERIFY_ALL_WRITES
static final int FLAGS_VERIFY_ALL_WRITES
- See Also:
- Constant Field Values
-
FLAGS_TREE_COPY
static final int FLAGS_TREE_COPY
- See Also:
- Constant Field Values
-
OPEN_FUNCTION_FAIL_IF_EXISTS
static final int OPEN_FUNCTION_FAIL_IF_EXISTS
- See Also:
- Constant Field Values
-
OPEN_FUNCTION_OVERWRITE_IF_EXISTS
static final int OPEN_FUNCTION_OVERWRITE_IF_EXISTS
- See Also:
- Constant Field Values
-
SECURITY_SHARE
static final int SECURITY_SHARE
- See Also:
- Constant Field Values
-
SECURITY_USER
static final int SECURITY_USER
- See Also:
- Constant Field Values
-
CMD_OFFSET
static final int CMD_OFFSET
- See Also:
- Constant Field Values
-
ERROR_CODE_OFFSET
static final int ERROR_CODE_OFFSET
- See Also:
- Constant Field Values
-
FLAGS_OFFSET
static final int FLAGS_OFFSET
- See Also:
- Constant Field Values
-
SIGNATURE_OFFSET
static final int SIGNATURE_OFFSET
- See Also:
- Constant Field Values
-
TID_OFFSET
static final int TID_OFFSET
- See Also:
- Constant Field Values
-
SMB1_HEADER_LENGTH
static final int SMB1_HEADER_LENGTH
- See Also:
- Constant Field Values
-
MILLISECONDS_BETWEEN_1970_AND_1601
static final long MILLISECONDS_BETWEEN_1970_AND_1601
- See Also:
- Constant Field Values
-
DEFAULT_OEM_ENCODING
static final String DEFAULT_OEM_ENCODING
- See Also:
- Constant Field Values
-
FOREVER
static final int FOREVER
- See Also:
- Constant Field Values
-
FILE_NO_SHARE
static final int FILE_NO_SHARE
When specified as the shareAccess constructor parameter, other SMB clients (including other threads making calls into jCIFS) will not be permitted to access the target file and will receive "The file is being accessed by another process" message.- See Also:
- Constant Field Values
-
FILE_SHARE_READ
static final int FILE_SHARE_READ
When specified as the shareAccess constructor parameter, other SMB clients will be permitted to read from the target file while this file is open. This constant may be logically OR'd with other share access flags.- See Also:
- Constant Field Values
-
FILE_SHARE_WRITE
static final int FILE_SHARE_WRITE
When specified as the shareAccess constructor parameter, other SMB clients will be permitted to write to the target file while this file is open. This constant may be logically OR'd with other share access flags.- See Also:
- Constant Field Values
-
FILE_SHARE_DELETE
static final int FILE_SHARE_DELETE
When specified as the shareAccess constructor parameter, other SMB clients will be permitted to delete the target file while this file is open. This constant may be logically OR'd with other share access flags.- See Also:
- Constant Field Values
-
DEFAULT_SHARING
static final int DEFAULT_SHARING
Default sharing mode for files- See Also:
- Constant Field Values
-
TYPE_FILESYSTEM
static final int TYPE_FILESYSTEM
Returned bySmbResource.getType()
if the resource this SmbFile represents is a regular file or directory.- See Also:
- Constant Field Values
-
TYPE_WORKGROUP
static final int TYPE_WORKGROUP
Returned bySmbResource.getType()
if the resource this SmbFile represents is a workgroup.- See Also:
- Constant Field Values
-
TYPE_SERVER
static final int TYPE_SERVER
Returned bySmbResource.getType()
if the resource this SmbFile represents is a server.- See Also:
- Constant Field Values
-
TYPE_SHARE
static final int TYPE_SHARE
Returned bySmbResource.getType()
if the resource this SmbFile represents is a share.- See Also:
- Constant Field Values
-
TYPE_NAMED_PIPE
static final int TYPE_NAMED_PIPE
Returned bySmbResource.getType()
if the resource this SmbFile represents is a named pipe.- See Also:
- Constant Field Values
-
TYPE_PRINTER
static final int TYPE_PRINTER
Returned bySmbResource.getType()
if the resource this SmbFile represents is a printer.- See Also:
- Constant Field Values
-
TYPE_COMM
static final int TYPE_COMM
Returned bySmbResource.getType()
if the resource this SmbFile represents is a communications device.- See Also:
- Constant Field Values
-
O_RDONLY
static final int O_RDONLY
- See Also:
- Constant Field Values
-
O_WRONLY
static final int O_WRONLY
- See Also:
- Constant Field Values
-
O_RDWR
static final int O_RDWR
- See Also:
- Constant Field Values
-
O_APPEND
static final int O_APPEND
- See Also:
- Constant Field Values
-
O_CREAT
static final int O_CREAT
- See Also:
- Constant Field Values
-
O_EXCL
static final int O_EXCL
- See Also:
- Constant Field Values
-
O_TRUNC
static final int O_TRUNC
- See Also:
- Constant Field Values
-
-