RFR 4358774: Add null InputStream and OutputStream (original) (raw)
David Lloyd david.lloyd at redhat.com
Fri Dec 8 19🔞16 UTC 2017
- Previous message: RFR 4358774: Add null InputStream and OutputStream
- Next message: RFR 4358774: Add null InputStream and OutputStream
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Fri, Dec 8, 2017 at 1:03 PM, Brian Burkhalter <brian.burkhalter at oracle.com> wrote:
On Dec 8, 2017, at 10:52 AM, David Lloyd <david.lloyd at redhat.com> wrote:
On Fri, Dec 8, 2017 at 12:38 PM, Brian Burkhalter <brian.burkhalter at 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. The second one?
Yes, sorry.
--
- DML
- Previous message: RFR 4358774: Add null InputStream and OutputStream
- Next message: RFR 4358774: Add null InputStream and OutputStream
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]