Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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