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

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .java  (1) All 1 file type selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
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
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
package org.msgpack.core.buffer;

import java.io.IOException;
import java.util.Arrays;
import java.util.Collections;
import java.util.Enumeration;

import static org.msgpack.core.Preconditions.checkNotNull;
Expand All @@ -36,9 +38,17 @@ public SequenceMessageBufferInput(Enumeration<? extends MessageBufferInput> sequ
nextInput();
}
catch (IOException ignore) {
// never happens
}
}

public SequenceMessageBufferInput(MessageBufferInput input1, MessageBufferInput input2)
{
this(Collections.enumeration(Arrays.asList(
checkNotNull(input1, "input1 is null"),
checkNotNull(input2, "input2 is null"))));
}

@Override
public MessageBuffer next() throws IOException
{
Expand Down

Back | FazBrowse Home | New Git URL