Package net.bytebuddy.agent
Class VirtualMachine.ForHotSpot.Connection.OnPersistentByteChannel.Response
java.lang.Object
net.bytebuddy.agent.VirtualMachine.ForHotSpot.Connection.OnPersistentByteChannel.Response
- All Implemented Interfaces:
Closeable
,AutoCloseable
,VirtualMachine.ForHotSpot.Connection.Response
- Enclosing class:
- VirtualMachine.ForHotSpot.Connection.OnPersistentByteChannel<T>
private class VirtualMachine.ForHotSpot.Connection.OnPersistentByteChannel.Response
extends Object
implements VirtualMachine.ForHotSpot.Connection.Response
A response of a persistent byte channel.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
connection
The connection representing this response.
-
-
Constructor Details
-
Response
Creates a new response for a persistent byte channel.- Parameters:
connection
- The connection representing this response.
-
-
Method Details
-
read
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. - Throws:
IOException
- If an I/O exception occurred.
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-