I need to pull some data from Java into C#. I am already exposing my C# classes via COM. So I thought a good way to pull data from Java would be to expose `IReadStream` from C# and implement `IReadStream` in Java. I can then send an instance of the implementation as a parameter to C# so that I can call `IReadStream.Read` in C#.

How do I implement a custom COM interface in Java?