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:
readin interfaceVirtualMachine.ForHotSpot.Connection.Response- Parameters:
buffer- The buffer to read to.- Returns:
- The bytes read or
-1if no more bytes could be read. - Throws:
IOException- If an I/O exception occurred.
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-