protected static class VirtualMachine.ForHotSpot.Connection.ForJnaWindowsNamedPipe.NamedPipeResponse extends Object implements VirtualMachine.ForHotSpot.Connection.Response
Modifier | Constructor and Description |
---|---|
protected |
NamedPipeResponse(com.sun.jna.platform.win32.WinNT.HANDLE pipe)
Creates a new response via a named pipe.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
int |
read(byte[] buffer)
Reads a buffer from the target VM.
|
protected NamedPipeResponse(com.sun.jna.platform.win32.WinNT.HANDLE pipe)
pipe
- The handle of the named pipe.public int read(byte[] buffer)
read
in interface VirtualMachine.ForHotSpot.Connection.Response
buffer
- The buffer to read to.-1
if no more bytes could be read.public void close()
close
in interface Closeable
close
in interface AutoCloseable
Copyright © 2014–2023. All rights reserved.