java - Piping a FileOutputStream to an InputStream without disk i/o -


a third party library casts subclassofoutputstream fileoutputstream internally invoke getchannel() operation though expose outputstream interface in api. (obviously) causes classcastexception.

i need write subclassofoutputstream interface. need write fileoutputstream container, pipe data inputstream, , read bytes inputstream in question subclassofoutputstream instance. there way without disk i/o?

thanks!


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -