Package net.bytebuddy.agent
Class VirtualMachine.ForHotSpot.Connection.ForJnaWindowsNamedPipe.NamedPipeResponse
- java.lang.Object
-
- net.bytebuddy.agent.VirtualMachine.ForHotSpot.Connection.ForJnaWindowsNamedPipe.NamedPipeResponse
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable,VirtualMachine.ForHotSpot.Connection.Response
- Enclosing class:
- VirtualMachine.ForHotSpot.Connection.ForJnaWindowsNamedPipe
protected static class VirtualMachine.ForHotSpot.Connection.ForJnaWindowsNamedPipe.NamedPipeResponse extends java.lang.Object implements VirtualMachine.ForHotSpot.Connection.Response
A response that is sent via a named pipe.
-
-
Field Summary
Fields Modifier and Type Field Description private com.sun.jna.platform.win32.WinNT.HANDLEpipeA handle of the named pipe.
-
Constructor Summary
Constructors Modifier Constructor Description protectedNamedPipeResponse(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 voidclose()intread(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:
readin interfaceVirtualMachine.ForHotSpot.Connection.Response- Parameters:
buffer- The buffer to read to.- Returns:
- The bytes read or
-1if no more bytes could be read.
-
close
public void close()
- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable
-
-