InputStream.nullInputStream() and OutputStream.nullOutputStream()

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Duplicate
    • Priority: P3
    • None
    • Affects Version/s: None
    • Component/s: core-libs
    • None

      InputStream and OutputStream equivalents to /dev/null are very useful for testing. We should consider adding factory methods for these.

      A discussion point is whether they can be singletons, probably not as it may be useful for testing to have read/write throw exceptions when the stream is closed.

            Assignee:
            Brian Burkhalter
            Reporter:
            Alan Bateman
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: