FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Mimic SequenceInputStream interface more in SequenceMessageBufferInput by frsyuki · Pull Request #389 · msgpack/msgpack-java · GitHub

Mimic SequenceInputStream interface more in SequenceMessageBufferInput - #389

Closed
frsyuki wants to merge 1 commit into
developfrom
seq-buffer-input
Closed

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

Conversation

frsyuki commented Sep 23, 2016
edited
Loading

Copy link
Copy Markdown
Member

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 commented Sep 23, 2016

Copy link
Copy Markdown
Member Author

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 commented Sep 23, 2016

Copy link
Copy Markdown
Member

@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.

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL