[CXF-6115] TransferableFileInputStream.transferTo can cause infinite loo...

...p or stack overflow