|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectat.spardat.xma.boot.natives.Pipes
| Constructor Summary | |
Pipes()
|
|
| Method Summary | |
static boolean |
CloseHandle(int hObject)
The CloseHandle function closes an open object handle. |
static boolean |
ConnectNamedPipe(int hNamedPipe,
int lpOverlapped)
The ConnectNamedPipe function enables a named pipe server process to wait for a client process to connect to an instance of a named pipe. |
static int |
CreateFile(java.lang.String lpFileName,
int dwDesiredAccess,
int dwShareMode,
int lpSecurityAttributes,
int dwCreationDisposition,
int dwFlagsAndAttributes,
int hTemplateFile)
The CreateFile function creates or opens a file, directory, physical disk, volume, console buffer, tape drive, communications resource, mailslot, or named pipe. |
static int |
CreateNamedPipe(java.lang.String lpName,
int dwOpenMode,
int dwPipeMode,
int nMaxInstances,
int nOutBufferSize,
int nInBufferSize,
int nDefaultTimeOut,
int lpSecurityAttributes)
The CreateNamedPipe function creates an instance of a named pipe and returns a handle for subsequent pipe operations. |
static boolean |
DisconnectNamedPipe(int hNamedPipe)
The DisconnectNamedPipe function disconnects the server end of a named pipe instance from a client process. |
static boolean |
FlushFileBuffers(int hFile)
The FlushFileBuffers function flushes the buffers of the specified file and causes all buffered data to be written to the file. |
static java.lang.String |
FormatMessage(int errorCode)
returns Windows Error Message mapped to the errorCode. |
static int |
GetLastError()
The GetLastError function retrieves the calling thread's last-error code value. |
static boolean |
ReadFile(int hFile,
byte[] lpBuffer,
int nNumberOfBytesToRead,
int[] lpNumberOfBytesRead,
int lpOverlapped)
The ReadFile function reads data from a file, starting at the position indicated by the file pointer. |
static boolean |
WaitNamedPipe(java.lang.String lpNamedPipeName,
int nTimeOut)
The WaitNamedPipe function waits until either a time-out interval elapses or an instance of the specified named pipe is available for connection (that is, the pipe's server process has a pending ConnectNamedPipe operation on the pipe). |
static boolean |
WriteFile(int hFile,
byte[] lpBuffer,
int nNumberOfBytesToWrite,
int[] lpNumberOfBytesWritten,
int lpOverlapped)
The WriteFile function writes data to a file at the position specified by the file pointer. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Pipes()
| Method Detail |
public static final int CreateNamedPipe(java.lang.String lpName,
int dwOpenMode,
int dwPipeMode,
int nMaxInstances,
int nOutBufferSize,
int nInBufferSize,
int nDefaultTimeOut,
int lpSecurityAttributes)
lpName - dwOpenMode - dwPipeMode - nMaxInstances - Maximum number of instances that can be created for this pipe. range 1 through PIPE_UNLIMITED_INSTANCES (255).nOutBufferSize - Number of bytes to reserve for the output buffer.nInBufferSize - Number of bytes to reserve for the input buffernDefaultTimeOut - Default time-out value, in milliseconds. NMPWAIT_USE_DEFAULT_WAITlpSecurityAttributes - Pointer to a SECURITY_ATTRIBUTES structure.
public static final boolean ConnectNamedPipe(int hNamedPipe,
int lpOverlapped)
hNamedPipe - Handle to the server end of a named pipe instance.lpOverlapped - Pointer to an OVERLAPPED structure.
public static final int GetLastError()
public static final boolean CloseHandle(int hObject)
hObject - Handle to an open object. This parameter can be a pseudo handle or INVALID_HANDLE_VALUE
public static final boolean ReadFile(int hFile,
byte[] lpBuffer,
int nNumberOfBytesToRead,
int[] lpNumberOfBytesRead,
int lpOverlapped)
hFile - lpBuffer - Pointer to the buffer that receives the data read from the file.nNumberOfBytesToRead - lpNumberOfBytesRead - lpOverlapped - Pointer to an OVERLAPPED structure. This structure is required if hFile was created with FILE_FLAG_OVERLAPPED.
public static final boolean WriteFile(int hFile,
byte[] lpBuffer,
int nNumberOfBytesToWrite,
int[] lpNumberOfBytesWritten,
int lpOverlapped)
hFile - lpBuffer - Pointer to the buffer containing the data to be written to the file.nNumberOfBytesToWrite - lpNumberOfBytesWritten - lpOverlapped - Pointer to an OVERLAPPED structure. This structure is required if hFile was opened with FILE_FLAG_OVERLAPPED
public static final boolean FlushFileBuffers(int hFile)
hFile -
public static final boolean DisconnectNamedPipe(int hNamedPipe)
hNamedPipe -
public static final int CreateFile(java.lang.String lpFileName,
int dwDesiredAccess,
int dwShareMode,
int lpSecurityAttributes,
int dwCreationDisposition,
int dwFlagsAndAttributes,
int hTemplateFile)
lpFileName - dwDesiredAccess - dwShareMode - lpSecurityAttributes - dwCreationDisposition - dwFlagsAndAttributes - hTemplateFile -
public static final boolean WaitNamedPipe(java.lang.String lpNamedPipeName,
int nTimeOut)
lpNamedPipeName - nTimeOut - Number of milliseconds that the function will wait for an instance of the named pipe to be available. You can used one of the following values instead of specifying a number of milliseconds.
public static final java.lang.String FormatMessage(int errorCode)
errorCode -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||