Class VirtualMachine.ForHotSpot.Connection.ForJnaWindowsNamedPipe.NamedPipeResponse

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private com.sun.jna.platform.win32.WinNT.HANDLE pipe
      A handle of the named pipe.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected NamedPipeResponse​(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
      void close()
      int read​(byte[] buffer)
      Reads a buffer from the target VM.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • pipe

        private final com.sun.jna.platform.win32.WinNT.HANDLE pipe
        A handle of the named pipe.
    • Constructor Detail

      • NamedPipeResponse

        protected NamedPipeResponse​(com.sun.jna.platform.win32.WinNT.HANDLE pipe)
        Creates a new response via a named pipe.
        Parameters:
        pipe - The handle of the named pipe.
    • Method Detail

      • read

        public int read​(byte[] buffer)
        Reads a buffer from the target VM.
        Specified by:
        read in interface VirtualMachine.ForHotSpot.Connection.Response
        Parameters:
        buffer - The buffer to read to.
        Returns:
        The bytes read or -1 if no more bytes could be read.
      • close

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable