Hi Rob,
Thank you for our question.
Unfortunately, there seems to be no straightforward way to use the existing handle with Java streams, because Java itself does not provide any API that can be used to create a custom FileDescriptor object.
However, as a possible approach you can try creating a FileDescriptor object using its default constructor and setting its private int field "handle" via reflection. The sample code demonstrating this approach is attached to this reply.
Could you please try it and let us know the results?
Best regards,
Natasha