Search code examples
javadeep-copyxuggler

Xuggler: deep copy of an IContainer


I have the code:

IContainer container = ...;
IContainer copy = container;

But I think, it doesn't make a deep copy of this IContainer.

Does somebody know how to make a deep copy of an IContainer?


Solution

  • You should create new container, similar to original one, and then copy from one to another by IPacket as if you do normal read/write.