FilterInputStreamやFilterOutputStreamのようなクラスを書いています。
のように見える
public FilterReadableByteChannel implements ReadableByteChannel {
// Should I permit null for channel?
public FilterReadableByteChannel(final ReadableByteChannel channel) {
// ...
}
}
そして、FilterInputStreamとFilterOutputStreamの両方がソースを許可することがわかりましたnull
。
* @param in the underlying input stream, or <code>null</code> if
* this instance is to be created without an underlying stream.
質問:
- これには実際的な理由がありますか?
- 作成後に基になるソースを変更する可能性はありますか?
それが答えになる可能性があることは知っていWhy Not?
ますが、元の API 設計者がこれを行った理由があるかどうかを知りたいです。