Package net.bytebuddy.agent
Class VirtualMachine.ForHotSpot.Connection.ForJnaWindowsNamedPipe.NamedPipeResponse
- java.lang.Object
-
- net.bytebuddy.agent.VirtualMachine.ForHotSpot.Connection.ForJnaWindowsNamedPipe.NamedPipeResponse
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,VirtualMachine.ForHotSpot.Connection.Response
- Enclosing class:
- VirtualMachine.ForHotSpot.Connection.ForJnaWindowsNamedPipe
protected static class VirtualMachine.ForHotSpot.Connection.ForJnaWindowsNamedPipe.NamedPipeResponse extends Object implements VirtualMachine.ForHotSpot.Connection.Response
A response that is sent via a named pipe.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
NamedPipeResponse(com.sun.jna.platform.win32.WinNT.HANDLE pipe)
Creates a new response via a named pipe.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
int
read(byte[] buffer)
Reads a buffer from the target VM.
-
-
-
Method Detail
-
read
public int read(byte[] buffer)
Reads a buffer from the target VM.- Specified by:
read
in interfaceVirtualMachine.ForHotSpot.Connection.Response
- Parameters:
buffer
- The buffer to read to.- Returns:
- The bytes read or
-1
if no more bytes could be read.
-
close
public void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-
-