パッケージ jcifs.smb1.smb1
クラス SmbNamedPipe
- java.lang.Object
-
- java.net.URLConnection
-
- jcifs.smb1.smb1.SmbFile
-
- jcifs.smb1.smb1.SmbNamedPipe
-
public class SmbNamedPipe extends SmbFile
This class will allow a Java program to read and write data to Named Pipes and Transact NamedPipes.There are three Win32 function calls provided by the Windows SDK that are important in the context of using jCIFS. They are:
-
CallNamedPipeA message-type pipe call that opens, writes to, reads from, and closes the pipe in a single operation. -
TransactNamedPipeA message-type pipe call that writes to and reads from an existing pipe descriptor in one operation. -
CreateFile,ReadFile,WriteFile, andCloseFileA byte-type pipe can be opened, written to, read from and closed using the standard Win32 file operations.
The jCIFS API maps all of these operations into the standard Java
XxxputStreaminterface. A specialPIPE_TYPEflags is necessary to distinguish which type of Named Pipe behavior is desired.SmbNamedPipeConstructor ExamplesCode Sample Description new SmbNamedPipe( "smb1://server/IPC$/PIPE/foo", SmbNamedPipe.PIPE_TYPE_RDWR | SmbNamedPipe.PIPE_TYPE_CALL );Open the Named Pipe foo for reading and writing. The pipe will behave like the CallNamedPipeinterface.new SmbNamedPipe( "smb1://server/IPC$/foo", SmbNamedPipe.PIPE_TYPE_RDWR | SmbNamedPipe.PIPE_TYPE_TRANSACT );Open the Named Pipe foo for reading and writing. The pipe will behave like the TransactNamedPipeinterface.new SmbNamedPipe( "smb1://server/IPC$/foo", SmbNamedPipe.PIPE_TYPE_RDWR );Open the Named Pipe foo for reading and writing. The pipe will behave as though the CreateFile,ReadFile,WriteFile, andCloseFileinterface was being used.See Using jCIFS to Connect to Win32 Named Pipes for a detailed description of how to use jCIFS with Win32 Named Pipe server processes.
-
-
-
フィールドの概要
-
クラスから継承されたフィールド jcifs.smb1.smb1.SmbFile
ATTR_ARCHIVE, ATTR_DIRECTORY, ATTR_HIDDEN, ATTR_READONLY, ATTR_SYSTEM, ATTR_VOLUME, dfs, FILE_NO_SHARE, FILE_SHARE_DELETE, FILE_SHARE_READ, FILE_SHARE_WRITE, TYPE_COMM, TYPE_FILESYSTEM, TYPE_NAMED_PIPE, TYPE_PRINTER, TYPE_SERVER, TYPE_SHARE, TYPE_WORKGROUP
-
クラスから継承されたフィールド java.net.URLConnection
allowUserInteraction, connected, doInput, doOutput, ifModifiedSince, url, useCaches
-
-
コンストラクタの概要
コンストラクタ コンストラクタ 説明 SmbNamedPipe(String url, int pipeType)Open the Named Pipe resource specified by the url parameter.SmbNamedPipe(String url, int pipeType, NtlmPasswordAuthentication auth)SmbNamedPipe(URL url, int pipeType, NtlmPasswordAuthentication auth)
-
メソッドの概要
すべてのメソッド インスタンス・メソッド concreteメソッド 修飾子とタイプ メソッド 説明 InputStreamgetNamedPipeInputStream()Return theInputStreamused to read information from this pipe instance.OutputStreamgetNamedPipeOutputStream()Return theOutputStreamused to write information to this pipe instance.-
クラスから継承されたメソッド jcifs.smb1.smb1.SmbFile
canRead, canWrite, connect, copyTo, createNewFile, createTime, delete, equals, exists, getAttributes, getCanonicalPath, getContentLength, getDate, getDfsPath, getDiskFreeSpace, getInputStream, getLastModified, getName, getOutputStream, getOwnerGroup, getOwnerUser, getParent, getPath, getPrincipal, getSecurity, getSecurity, getServer, getShare, getShareSecurity, getType, getUncPath, hashCode, isDirectory, isFile, isHidden, lastModified, length, list, list, listFiles, listFiles, listFiles, listFiles, mkdir, mkdirs, pathNamesPossiblyEqual, renameTo, setAttributes, setCreateTime, setLastModified, setReadOnly, setReadWrite, toString, toURL
-
クラスから継承されたメソッド java.net.URLConnection
addRequestProperty, getAllowUserInteraction, getConnectTimeout, getContent, getContent, getContentEncoding, getContentLengthLong, getContentType, getDefaultAllowUserInteraction, getDefaultRequestProperty, getDefaultUseCaches, getDefaultUseCaches, getDoInput, getDoOutput, getExpiration, getFileNameMap, getHeaderField, getHeaderField, getHeaderFieldDate, getHeaderFieldInt, getHeaderFieldKey, getHeaderFieldLong, getHeaderFields, getIfModifiedSince, getPermission, getReadTimeout, getRequestProperties, getRequestProperty, getURL, getUseCaches, guessContentTypeFromName, guessContentTypeFromStream, setAllowUserInteraction, setConnectTimeout, setContentHandlerFactory, setDefaultAllowUserInteraction, setDefaultRequestProperty, setDefaultUseCaches, setDefaultUseCaches, setDoInput, setDoOutput, setFileNameMap, setIfModifiedSince, setReadTimeout, setRequestProperty, setUseCaches
-
-
-
-
フィールドの詳細
-
PIPE_TYPE_RDONLY
public static final int PIPE_TYPE_RDONLY
The pipe should be opened read-only.- 関連項目:
- 定数フィールド値
-
PIPE_TYPE_WRONLY
public static final int PIPE_TYPE_WRONLY
The pipe should be opened only for writing.- 関連項目:
- 定数フィールド値
-
PIPE_TYPE_RDWR
public static final int PIPE_TYPE_RDWR
The pipe should be opened for both reading and writing.- 関連項目:
- 定数フィールド値
-
PIPE_TYPE_CALL
public static final int PIPE_TYPE_CALL
Pipe operations should behave like theCallNamedPipeWin32 Named Pipe function.- 関連項目:
- 定数フィールド値
-
PIPE_TYPE_TRANSACT
public static final int PIPE_TYPE_TRANSACT
Pipe operations should behave like theTransactNamedPipeWin32 Named Pipe function.- 関連項目:
- 定数フィールド値
-
PIPE_TYPE_DCE_TRANSACT
public static final int PIPE_TYPE_DCE_TRANSACT
- 関連項目:
- 定数フィールド値
-
DEFAULT_PORT
public static final int DEFAULT_PORT
- 関連項目:
- 定数フィールド値
-
DEFAULT_MAX_MPX_COUNT
public static final int DEFAULT_MAX_MPX_COUNT
- 関連項目:
- 定数フィールド値
-
DEFAULT_RESPONSE_TIMEOUT
public static final int DEFAULT_RESPONSE_TIMEOUT
- 関連項目:
- 定数フィールド値
-
DEFAULT_SO_TIMEOUT
public static final int DEFAULT_SO_TIMEOUT
- 関連項目:
- 定数フィールド値
-
DEFAULT_RCV_BUF_SIZE
public static final int DEFAULT_RCV_BUF_SIZE
- 関連項目:
- 定数フィールド値
-
DEFAULT_SND_BUF_SIZE
public static final int DEFAULT_SND_BUF_SIZE
- 関連項目:
- 定数フィールド値
-
DEFAULT_SSN_LIMIT
public static final int DEFAULT_SSN_LIMIT
- 関連項目:
- 定数フィールド値
-
DEFAULT_CONN_TIMEOUT
public static final int DEFAULT_CONN_TIMEOUT
- 関連項目:
- 定数フィールド値
-
LADDR
public static final InetAddress LADDR
-
LPORT
public static final int LPORT
-
MAX_MPX_COUNT
public static final int MAX_MPX_COUNT
-
SND_BUF_SIZE
public static final int SND_BUF_SIZE
-
RCV_BUF_SIZE
public static final int RCV_BUF_SIZE
-
USE_UNICODE
public static final boolean USE_UNICODE
-
FORCE_UNICODE
public static final boolean FORCE_UNICODE
-
USE_NTSTATUS
public static final boolean USE_NTSTATUS
-
SIGNPREF
public static final boolean SIGNPREF
-
USE_NTSMBS
public static final boolean USE_NTSMBS
-
USE_EXTSEC
public static final boolean USE_EXTSEC
-
NETBIOS_HOSTNAME
public static final String NETBIOS_HOSTNAME
-
LM_COMPATIBILITY
public static final int LM_COMPATIBILITY
-
FLAGS_NONE
public static final int FLAGS_NONE
- 関連項目:
- 定数フィールド値
-
FLAGS_LOCK_AND_READ_WRITE_AND_UNLOCK
public static final int FLAGS_LOCK_AND_READ_WRITE_AND_UNLOCK
- 関連項目:
- 定数フィールド値
-
FLAGS_RECEIVE_BUFFER_POSTED
public static final int FLAGS_RECEIVE_BUFFER_POSTED
- 関連項目:
- 定数フィールド値
-
FLAGS_PATH_NAMES_CASELESS
public static final int FLAGS_PATH_NAMES_CASELESS
- 関連項目:
- 定数フィールド値
-
FLAGS_PATH_NAMES_CANONICALIZED
public static final int FLAGS_PATH_NAMES_CANONICALIZED
- 関連項目:
- 定数フィールド値
-
FLAGS_OPLOCK_REQUESTED_OR_GRANTED
public static final int FLAGS_OPLOCK_REQUESTED_OR_GRANTED
- 関連項目:
- 定数フィールド値
-
FLAGS_NOTIFY_OF_MODIFY_ACTION
public static final int FLAGS_NOTIFY_OF_MODIFY_ACTION
- 関連項目:
- 定数フィールド値
-
FLAGS_RESPONSE
public static final int FLAGS_RESPONSE
- 関連項目:
- 定数フィールド値
-
FLAGS2_NONE
public static final int FLAGS2_NONE
- 関連項目:
- 定数フィールド値
-
FLAGS2_LONG_FILENAMES
public static final int FLAGS2_LONG_FILENAMES
- 関連項目:
- 定数フィールド値
-
FLAGS2_EXTENDED_ATTRIBUTES
public static final int FLAGS2_EXTENDED_ATTRIBUTES
- 関連項目:
- 定数フィールド値
-
FLAGS2_SECURITY_SIGNATURES
public static final int FLAGS2_SECURITY_SIGNATURES
- 関連項目:
- 定数フィールド値
-
FLAGS2_EXTENDED_SECURITY_NEGOTIATION
public static final int FLAGS2_EXTENDED_SECURITY_NEGOTIATION
- 関連項目:
- 定数フィールド値
-
FLAGS2_RESOLVE_PATHS_IN_DFS
public static final int FLAGS2_RESOLVE_PATHS_IN_DFS
- 関連項目:
- 定数フィールド値
-
FLAGS2_PERMIT_READ_IF_EXECUTE_PERM
public static final int FLAGS2_PERMIT_READ_IF_EXECUTE_PERM
- 関連項目:
- 定数フィールド値
-
FLAGS2_STATUS32
public static final int FLAGS2_STATUS32
- 関連項目:
- 定数フィールド値
-
FLAGS2_UNICODE
public static final int FLAGS2_UNICODE
- 関連項目:
- 定数フィールド値
-
CAP_NONE
public static final int CAP_NONE
- 関連項目:
- 定数フィールド値
-
CAP_RAW_MODE
public static final int CAP_RAW_MODE
- 関連項目:
- 定数フィールド値
-
CAP_MPX_MODE
public static final int CAP_MPX_MODE
- 関連項目:
- 定数フィールド値
-
CAP_UNICODE
public static final int CAP_UNICODE
- 関連項目:
- 定数フィールド値
-
CAP_LARGE_FILES
public static final int CAP_LARGE_FILES
- 関連項目:
- 定数フィールド値
-
CAP_NT_SMBS
public static final int CAP_NT_SMBS
- 関連項目:
- 定数フィールド値
-
CAP_RPC_REMOTE_APIS
public static final int CAP_RPC_REMOTE_APIS
- 関連項目:
- 定数フィールド値
-
CAP_STATUS32
public static final int CAP_STATUS32
- 関連項目:
- 定数フィールド値
-
CAP_LEVEL_II_OPLOCKS
public static final int CAP_LEVEL_II_OPLOCKS
- 関連項目:
- 定数フィールド値
-
CAP_LOCK_AND_READ
public static final int CAP_LOCK_AND_READ
- 関連項目:
- 定数フィールド値
-
CAP_NT_FIND
public static final int CAP_NT_FIND
- 関連項目:
- 定数フィールド値
-
CAP_DFS
public static final int CAP_DFS
- 関連項目:
- 定数フィールド値
-
CAP_EXTENDED_SECURITY
public static final int CAP_EXTENDED_SECURITY
- 関連項目:
- 定数フィールド値
-
FILE_READ_DATA
public static final int FILE_READ_DATA
- 関連項目:
- 定数フィールド値
-
FILE_WRITE_DATA
public static final int FILE_WRITE_DATA
- 関連項目:
- 定数フィールド値
-
FILE_APPEND_DATA
public static final int FILE_APPEND_DATA
- 関連項目:
- 定数フィールド値
-
FILE_READ_EA
public static final int FILE_READ_EA
- 関連項目:
- 定数フィールド値
-
FILE_WRITE_EA
public static final int FILE_WRITE_EA
- 関連項目:
- 定数フィールド値
-
FILE_EXECUTE
public static final int FILE_EXECUTE
- 関連項目:
- 定数フィールド値
-
FILE_DELETE
public static final int FILE_DELETE
- 関連項目:
- 定数フィールド値
-
FILE_READ_ATTRIBUTES
public static final int FILE_READ_ATTRIBUTES
- 関連項目:
- 定数フィールド値
-
FILE_WRITE_ATTRIBUTES
public static final int FILE_WRITE_ATTRIBUTES
- 関連項目:
- 定数フィールド値
-
DELETE
public static final int DELETE
- 関連項目:
- 定数フィールド値
-
READ_CONTROL
public static final int READ_CONTROL
- 関連項目:
- 定数フィールド値
-
WRITE_DAC
public static final int WRITE_DAC
- 関連項目:
- 定数フィールド値
-
WRITE_OWNER
public static final int WRITE_OWNER
- 関連項目:
- 定数フィールド値
-
SYNCHRONIZE
public static final int SYNCHRONIZE
- 関連項目:
- 定数フィールド値
-
GENERIC_ALL
public static final int GENERIC_ALL
- 関連項目:
- 定数フィールド値
-
GENERIC_EXECUTE
public static final int GENERIC_EXECUTE
- 関連項目:
- 定数フィールド値
-
GENERIC_WRITE
public static final int GENERIC_WRITE
- 関連項目:
- 定数フィールド値
-
GENERIC_READ
public static final int GENERIC_READ
- 関連項目:
- 定数フィールド値
-
FLAGS_TARGET_MUST_BE_FILE
public static final int FLAGS_TARGET_MUST_BE_FILE
- 関連項目:
- 定数フィールド値
-
FLAGS_TARGET_MUST_BE_DIRECTORY
public static final int FLAGS_TARGET_MUST_BE_DIRECTORY
- 関連項目:
- 定数フィールド値
-
FLAGS_COPY_TARGET_MODE_ASCII
public static final int FLAGS_COPY_TARGET_MODE_ASCII
- 関連項目:
- 定数フィールド値
-
FLAGS_COPY_SOURCE_MODE_ASCII
public static final int FLAGS_COPY_SOURCE_MODE_ASCII
- 関連項目:
- 定数フィールド値
-
FLAGS_VERIFY_ALL_WRITES
public static final int FLAGS_VERIFY_ALL_WRITES
- 関連項目:
- 定数フィールド値
-
FLAGS_TREE_COPY
public static final int FLAGS_TREE_COPY
- 関連項目:
- 定数フィールド値
-
OPEN_FUNCTION_FAIL_IF_EXISTS
public static final int OPEN_FUNCTION_FAIL_IF_EXISTS
- 関連項目:
- 定数フィールド値
-
OPEN_FUNCTION_OVERWRITE_IF_EXISTS
public static final int OPEN_FUNCTION_OVERWRITE_IF_EXISTS
- 関連項目:
- 定数フィールド値
-
PID
public static final int PID
-
SECURITY_SHARE
public static final int SECURITY_SHARE
- 関連項目:
- 定数フィールド値
-
SECURITY_USER
public static final int SECURITY_USER
- 関連項目:
- 定数フィールド値
-
CMD_OFFSET
public static final int CMD_OFFSET
- 関連項目:
- 定数フィールド値
-
ERROR_CODE_OFFSET
public static final int ERROR_CODE_OFFSET
- 関連項目:
- 定数フィールド値
-
FLAGS_OFFSET
public static final int FLAGS_OFFSET
- 関連項目:
- 定数フィールド値
-
SIGNATURE_OFFSET
public static final int SIGNATURE_OFFSET
- 関連項目:
- 定数フィールド値
-
TID_OFFSET
public static final int TID_OFFSET
- 関連項目:
- 定数フィールド値
-
HEADER_LENGTH
public static final int HEADER_LENGTH
- 関連項目:
- 定数フィールド値
-
MILLISECONDS_BETWEEN_1970_AND_1601
public static final long MILLISECONDS_BETWEEN_1970_AND_1601
- 関連項目:
- 定数フィールド値
-
TZ
public static final TimeZone TZ
-
USE_BATCHING
public static final boolean USE_BATCHING
-
OEM_ENCODING
public static final String OEM_ENCODING
-
DEFAULT_FLAGS2
public static final int DEFAULT_FLAGS2
-
DEFAULT_CAPABILITIES
public static final int DEFAULT_CAPABILITIES
-
FLAGS2
public static final int FLAGS2
-
CAPABILITIES
public static final int CAPABILITIES
-
TCP_NODELAY
public static final boolean TCP_NODELAY
-
RESPONSE_TIMEOUT
public static final int RESPONSE_TIMEOUT
-
CONNECTIONS
public static final LinkedList CONNECTIONS
-
SSN_LIMIT
public static final int SSN_LIMIT
-
SO_TIMEOUT
public static final int SO_TIMEOUT
-
CONN_TIMEOUT
public static final int CONN_TIMEOUT
-
NATIVE_OS
public static final String NATIVE_OS
-
NATIVE_LANMAN
public static final String NATIVE_LANMAN
-
VC_NUMBER
public static final int VC_NUMBER
- 関連項目:
- 定数フィールド値
-
NULL_TRANSPORT
public static final SmbTransport NULL_TRANSPORT
-
-
コンストラクタの詳細
-
SmbNamedPipe
public SmbNamedPipe(String url, int pipeType) throws MalformedURLException, UnknownHostException
Open the Named Pipe resource specified by the url parameter. The pipeType parameter should be at least one of thePIPE_TYPEflags combined with the bitwise OR operator|. See the examples listed above.
-
SmbNamedPipe
public SmbNamedPipe(String url, int pipeType, NtlmPasswordAuthentication auth) throws MalformedURLException, UnknownHostException
-
SmbNamedPipe
public SmbNamedPipe(URL url, int pipeType, NtlmPasswordAuthentication auth) throws MalformedURLException, UnknownHostException
-
-
メソッドの詳細
-
getNamedPipeInputStream
public InputStream getNamedPipeInputStream() throws IOException
Return theInputStreamused to read information from this pipe instance. Presumably data would first be written to theOutputStreamassociated with this Named Pipe instance although this is not a requirement (e.g. a read-only named pipe would write data to this stream on connection). Reading from this stream may block. Therefore it may be necessary that an addition thread be used to read and write to a Named Pipe.- 例外:
IOException
-
getNamedPipeOutputStream
public OutputStream getNamedPipeOutputStream() throws IOException
Return theOutputStreamused to write information to this pipe instance. The act of writing data to this stream will result in response data recieved in theInputStreamassociated with this Named Pipe instance (unless of course it does not elicite a response or the pipe is write-only).- 例外:
IOException
-
-