[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[libvirt] [libvirt-java] [PATCH 0/3] Make the Java wrapper more fun to use

This patchset first implements the ByteChannel interface for the Stream
class which makes it readily usable with any standard Java library.

Note, that this changes the wrapping of the virStreamRecv and virStreamSend
function of the jna.Libvirt interface (which also makes this more efficient
because a ByteBuffer is used instead of an Array). However, this interface
should not be considered part of the public interface of the library, as with
all classes part of the org.libvirt.jna package.

In order to put this new functionality to use, the virDomainScreenshot
function is wrapped and a unit test added to exercise it a bit.

Claudio Bley (3):
  Implement interface ByteChannel for Stream class
  Domain: add screenshot method
  test: add testDomainScreenshot JUnit test

 src/main/java/org/libvirt/Domain.java           |  11 ++
 src/main/java/org/libvirt/Stream.java           | 175 +++++++++++++++++++++++-
 src/main/java/org/libvirt/jna/Libvirt.java      |   7 +-
 src/test/java/org/libvirt/TestJavaBindings.java |  38 +++++
 4 files changed, 226 insertions(+), 5 deletions(-)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]