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 void
close()
private com.sun.jna.Pointer
init(PageantLibrary.CopyStruct c)
void
receive(byte[] data)
Reads bytes from the pipe untildata
is full.void
send(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:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in 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.IOException
Description copied from interface:PageantLibrary.Pipe
Send the given message.- Specified by:
send
in interfacePageantLibrary.Pipe
- Parameters:
message
- to send- Throws:
java.io.IOException
- on errors
-
receive
public void receive(byte[] data) throws java.io.IOException
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:
java.io.IOException
- on errors
-
-