[Isolate-interest] Why are StreamBindings only for files and sockets?

Grzegorz Czajkowski gczaj at sfbay.sun.com
Tue Sep 6 15:14:45 EDT 2005


Curt -

what you've suggested is elegant and compact
but can hurt portability of code written using the JSR 121,
or requires documenting which subclasses of PrintStream
and InputStream are allowed, which then limits the utility
of your extensible proposal.

Regards,
Greg

Curt Cox wrote:
> Hi,
> 
> I'm curious why javax.isolate.StreamBindings streams are limited to either
> files or sockets, while java.lang.System streams have no such limitation.
> Even if something in the implementation forces this limitation, wouldn't it
> be better to use PrintStream/InputStream and throw an
> IllegalArgumentException when appropriate?



More information about the Isolate-interest mailing list