Package net.bytebuddy.agent
Class VirtualMachine.ForHotSpot.Connection.ForJnaSolarisDoor.Response
- java.lang.Object
-
- net.bytebuddy.agent.VirtualMachine.ForHotSpot.Connection.ForJnaSolarisDoor.Response
-
- All Implemented Interfaces:
Closeable,AutoCloseable,VirtualMachine.ForHotSpot.Connection.Response
- Enclosing class:
- VirtualMachine.ForHotSpot.Connection.ForJnaSolarisDoor
protected static class VirtualMachine.ForHotSpot.Connection.ForJnaSolarisDoor.Response extends Object implements VirtualMachine.ForHotSpot.Connection.Response
A response from a VM using a Solaris door.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedResponse(VirtualMachine.ForHotSpot.Connection.ForJnaSolarisDoor.SolarisLibrary library, int handle)Creates a response from a VM using a Solaris door.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()intread(byte[] buffer)Reads a buffer from the target VM.
-
-
-
Constructor Detail
-
Response
protected Response(VirtualMachine.ForHotSpot.Connection.ForJnaSolarisDoor.SolarisLibrary library, int handle)
Creates a response from a VM using a Solaris door.- Parameters:
library- The Solaris library to use.handle- The door handle.
-
-
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 interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
-