Class PageantLibrary.PipeImpl
- java.lang.Object
-
- org.eclipse.jgit.internal.transport.sshd.agent.connector.PageantLibrary.PipeImpl
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable,PageantLibrary.Pipe
- Enclosing class:
- PageantLibrary
private static class PageantLibrary.PipeImpl extends java.lang.Object implements PageantLibrary.Pipe
-
-
Constructor Summary
Constructors Constructor Description PipeImpl(LibraryHolder libs, com.sun.jna.platform.win32.WinDef.HWND window, java.lang.String name, com.sun.jna.platform.win32.WinNT.HANDLE file, com.sun.jna.Pointer memory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()private com.sun.jna.Pointerinit(PageantLibrary.CopyStruct c)voidreceive(byte[] data)Reads bytes from the pipe untildatais full.voidsend(byte[] message)Send the given message.
-
-
-
Field Detail
-
libs
private final LibraryHolder 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 Detail
-
PipeImpl
PipeImpl(LibraryHolder libs, com.sun.jna.platform.win32.WinDef.HWND window, java.lang.String name, com.sun.jna.platform.win32.WinNT.HANDLE file, com.sun.jna.Pointer memory)
-
-
Method Detail
-
close
public void close() throws java.io.IOException- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Throws:
java.io.IOException
-
init
private com.sun.jna.Pointer init(PageantLibrary.CopyStruct c)
-
send
public void send(byte[] message) throws java.io.IOExceptionDescription copied from interface:PageantLibrary.PipeSend the given message.- Specified by:
sendin interfacePageantLibrary.Pipe- Parameters:
message- to send- Throws:
java.io.IOException- on errors
-
receive
public void receive(byte[] data) throws java.io.IOExceptionDescription copied from interface:PageantLibrary.PipeReads bytes from the pipe untildatais full.- Specified by:
receivein interfacePageantLibrary.Pipe- Parameters:
data- to read- Throws:
java.io.IOException- on errors
-
-