Interface VirtualMachine.ForHotSpot.Connection.Response

All Superinterfaces:
AutoCloseable, Closeable
All Known Implementing Classes:
VirtualMachine.ForHotSpot.Connection.ForJnaSolarisDoor.Response, VirtualMachine.ForHotSpot.Connection.ForJnaWindowsNamedPipe.NamedPipeResponse, VirtualMachine.ForHotSpot.Connection.OnPersistentByteChannel.Response
Enclosing interface:
VirtualMachine.ForHotSpot.Connection

public static interface VirtualMachine.ForHotSpot.Connection.Response extends Closeable
A response to an execution command to a VM.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    read(byte[] buffer)
    Reads a buffer from the target VM.

    Methods inherited from interface java.io.Closeable

    close
  • Method Details

    • read

      int read(byte[] buffer) throws IOException
      Reads a buffer from the target VM.
      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.