Skip to content

Mimic SequenceInputStream interface more in SequenceMessageBufferInput#389

Closed
frsyuki wants to merge 1 commit intodevelopfrom
seq-buffer-input
Closed

Mimic SequenceInputStream interface more in SequenceMessageBufferInput#389
frsyuki wants to merge 1 commit intodevelopfrom
seq-buffer-input

Conversation

@frsyuki
Copy link
Member

@frsyuki frsyuki commented Sep 23, 2016

I commented as #387 (review) but I changed my mind: I think it's ok to keep SequenceMessageBufferInput as a mimic of SequenceInputStream. We can create another class if necessary.

A reason is that behavior of SequenceMessageBufferInput.close (which is same withSequenceInputStream.close) is surprising, in my opinion. I expect that it closes input sequence without reading buffers. But they consume all of them. However, change of the behavior is also surprising because its behavior becomes inconsistent from SequenceInputStream.

@frsyuki
Copy link
Member Author

frsyuki commented Sep 23, 2016

well, rather better idea is to move SequenceMessageBufferInput to test package. I think there're little demand for it. How do you think, @xerial?

@xerial
Copy link
Member

xerial commented Sep 23, 2016

@frsyuki Just move it to test package. I think there will be no handy way to close a sequence of streams while managing there lifecycle.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants