Class PageantLibrary.PipeImpl
java.lang.Object
org.eclipse.jgit.internal.transport.sshd.agent.connector.PageantLibrary.PipeImpl
- All Implemented Interfaces:
Closeable
,AutoCloseable
,PageantLibrary.Pipe
- Enclosing class:
- PageantLibrary
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPipeImpl
(LibraryHolder libs, com.sun.jna.platform.win32.WinDef.HWND window, String name, com.sun.jna.platform.win32.WinNT.HANDLE file, com.sun.jna.Pointer memory) -
Method Summary
-
Field Details
-
libs
-
window
private final com.sun.jna.platform.win32.WinDef.HWND window -
name
private final byte[] name -
file
private final com.sun.jna.platform.win32.WinNT.HANDLE file -
memory
private final com.sun.jna.Pointer memory -
readPos
private long readPos
-
-
Constructor Details
-
PipeImpl
PipeImpl(LibraryHolder libs, com.sun.jna.platform.win32.WinDef.HWND window, String name, com.sun.jna.platform.win32.WinNT.HANDLE file, com.sun.jna.Pointer memory)
-
-
Method Details
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
init
-
send
Description copied from interface:PageantLibrary.Pipe
Send the given message.- Specified by:
send
in interfacePageantLibrary.Pipe
- Parameters:
message
- to send- Throws:
IOException
- on errors
-
receive
Description copied from interface:PageantLibrary.Pipe
Reads bytes from the pipe untildata
is full.- Specified by:
receive
in interfacePageantLibrary.Pipe
- Parameters:
data
- to read- Throws:
IOException
- on errors
-