Package jcifs
Interface SmbConstants
-
- All Known Implementing Classes:
SmbFile,SmbNamedPipe
public interface SmbConstantsUtility class holding several protocol constrants- Author:
- mbechler
-
-
Field Summary
Fields Modifier and Type Field Description static intATTR_ARCHIVEFiles is marked to be archivedstatic intATTR_COMPRESSEDstatic intATTR_DIRECTORYFile is a directorystatic intATTR_HIDDENFile is marked hiddenstatic intATTR_NORMALstatic intATTR_READONLYFile is marked read-onlystatic intATTR_SYSTEMFile is marked a system filestatic intATTR_TEMPORARYstatic intATTR_VOLUMEFile is marked a volumestatic intCAP_DFSstatic intCAP_EXTENDED_SECURITYstatic intCAP_LARGE_FILESstatic intCAP_LARGE_READXstatic intCAP_LARGE_WRITEXstatic intCAP_LEVEL_II_OPLOCKSstatic intCAP_LOCK_AND_READstatic intCAP_MPX_MODEstatic intCAP_NONEstatic intCAP_NT_FINDstatic intCAP_NT_SMBSstatic intCAP_RAW_MODEstatic intCAP_RPC_REMOTE_APISstatic intCAP_STATUS32static intCAP_UNICODEstatic intCMD_OFFSETstatic intDEFAULT_CONN_TIMEOUTstatic intDEFAULT_MAX_MPX_COUNTstatic intDEFAULT_NOTIFY_BUF_SIZEstatic StringDEFAULT_OEM_ENCODINGstatic intDEFAULT_PORTstatic intDEFAULT_RCV_BUF_SIZEstatic intDEFAULT_RESPONSE_TIMEOUTstatic intDEFAULT_SHARINGDefault sharing mode for filesstatic intDEFAULT_SND_BUF_SIZEstatic intDEFAULT_SO_TIMEOUTstatic intDEFAULT_SSN_LIMITstatic intDELETEstatic intERROR_CODE_OFFSETstatic intFILE_APPEND_DATAstatic intFILE_DELETEstatic intFILE_EXECUTEstatic intFILE_NO_SHAREWhen 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 intFILE_READ_ATTRIBUTESstatic intFILE_READ_DATAstatic intFILE_READ_EAstatic intFILE_SHARE_DELETEWhen specified as the shareAccess constructor parameter, other SMB clients will be permitted to delete the target file while this file is open.static intFILE_SHARE_READWhen specified as the shareAccess constructor parameter, other SMB clients will be permitted to read from the target file while this file is open.static intFILE_SHARE_WRITEWhen specified as the shareAccess constructor parameter, other SMB clients will be permitted to write to the target file while this file is open.static intFILE_WRITE_ATTRIBUTESstatic intFILE_WRITE_DATAstatic intFILE_WRITE_EAstatic intFLAGS_COPY_SOURCE_MODE_ASCIIstatic intFLAGS_COPY_TARGET_MODE_ASCIIstatic intFLAGS_LOCK_AND_READ_WRITE_AND_UNLOCKstatic intFLAGS_NONEstatic intFLAGS_NOTIFY_OF_MODIFY_ACTIONstatic intFLAGS_OFFSETstatic intFLAGS_OPLOCK_REQUESTED_OR_GRANTEDstatic intFLAGS_PATH_NAMES_CANONICALIZEDstatic intFLAGS_PATH_NAMES_CASELESSstatic intFLAGS_RECEIVE_BUFFER_POSTEDstatic intFLAGS_RESPONSEstatic intFLAGS_TARGET_MUST_BE_DIRECTORYstatic intFLAGS_TARGET_MUST_BE_FILEstatic intFLAGS_TREE_COPYstatic intFLAGS_VERIFY_ALL_WRITESstatic intFLAGS2_EXTENDED_ATTRIBUTESstatic intFLAGS2_EXTENDED_SECURITY_NEGOTIATIONstatic intFLAGS2_LONG_FILENAMESstatic intFLAGS2_NONEstatic intFLAGS2_PERMIT_READ_IF_EXECUTE_PERMstatic intFLAGS2_RESOLVE_PATHS_IN_DFSstatic intFLAGS2_SECURITY_REQUIRE_SIGNATURESstatic intFLAGS2_SECURITY_SIGNATURESstatic intFLAGS2_STATUS32static intFLAGS2_UNICODEstatic intFOREVERstatic intGENERIC_ALLstatic intGENERIC_EXECUTEstatic intGENERIC_READstatic intGENERIC_WRITEstatic longMILLISECONDS_BETWEEN_1970_AND_1601static intO_APPENDstatic intO_CREATstatic intO_EXCLstatic intO_RDONLYstatic intO_RDWRstatic intO_TRUNCstatic intO_WRONLYstatic intOPEN_FUNCTION_FAIL_IF_EXISTSstatic intOPEN_FUNCTION_OVERWRITE_IF_EXISTSstatic intREAD_CONTROLstatic intSECURITY_SHAREstatic intSECURITY_USERstatic intSIGNATURE_OFFSETstatic intSMB1_HEADER_LENGTHstatic intSYNCHRONIZEstatic intTID_OFFSETstatic intTYPE_COMMReturned bySmbResource.getType()if the resource this SmbFile represents is a communications device.static intTYPE_FILESYSTEMReturned bySmbResource.getType()if the resource this SmbFile represents is a regular file or directory.static intTYPE_NAMED_PIPEReturned bySmbResource.getType()if the resource this SmbFile represents is a named pipe.static intTYPE_PRINTERReturned bySmbResource.getType()if the resource this SmbFile represents is a printer.static intTYPE_SERVERReturned bySmbResource.getType()if the resource this SmbFile represents is a server.static intTYPE_SHAREReturned bySmbResource.getType()if the resource this SmbFile represents is a share.static intTYPE_WORKGROUPReturned bySmbResource.getType()if the resource this SmbFile represents is a workgroup.static intWRITE_DACstatic intWRITE_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
-
-