On Fri, Dec 8, 2017 at 12:38 PM, Brian Burkhalter <brian.burkhal...@oracle.com> wrote: > Patrick’s comment made us think again about the naming here as “nullStream()” > would not fit for eventual equivalent methods on Reader and Writer. It might > be better to go with something like > > InputStream InputStream.nullSource(); > OutputStream.nullSink(); > > and later > > Reader.nullSource(); > Writer.nullSink(); > > Another alternative would be simply to reflect the class names in the methods: > > InputStream InputStream.nullInputStream(); > OutputStream.nullOutputStream(); > > and later > > Reader.nullReader(); > Writer.nullWriter();
I for one prefer this alternative; it's very clear and unambiguous. -- - DML