public abstract class AbstractNamedPipe extends Object implements Closeable
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractNamedPipe.NamedPipeSession |
| Modifier and Type | Field and Description |
|---|---|
protected int |
MAX_BUFFER_SIZE |
static String |
NAMED_PIPE_PREFIX |
protected String |
pipeName |
| Constructor and Description |
|---|
AbstractNamedPipe() |
| Modifier and Type | Method and Description |
|---|---|
static void |
assertCallSucceeded(String message,
boolean result)
Checks if the API call result is
true. |
protected void |
assertEquals(String message,
int len,
int value) |
static com.sun.jna.platform.win32.WinNT.HANDLE |
assertValidHandle(String message,
com.sun.jna.platform.win32.WinNT.HANDLE handle)
Makes sure that the handle argument is not
null or WinBase.INVALID_HANDLE_VALUE. |
String |
getPath() |
protected final int MAX_BUFFER_SIZE
protected String pipeName
public static final String NAMED_PIPE_PREFIX
public String getPath()
public static final void assertCallSucceeded(String message, boolean result) throws IOException
true. If not, then calls
Kernel32.GetLastError() and fails with the error code.
Note: if the error code is WinError.ERROR_SUCCESS
then an "unknown reason code" is reportedmessage - Message to display if call failedresult - The API call resultIOExceptionpublic static final com.sun.jna.platform.win32.WinNT.HANDLE assertValidHandle(String message, com.sun.jna.platform.win32.WinNT.HANDLE handle) throws IOException
null or WinBase.INVALID_HANDLE_VALUE.
If invalid handle detected, then it invokes Kernel32.GetLastError()
in order to display the error codemessage - Message to display if bad handlehandle - The WinNT.HANDLE to testIOExceptionprotected void assertEquals(String message, int len, int value) throws IOException
IOExceptionCopyright © 2025. All rights reserved.