Skip to content

Commit

Permalink
Move to raw InputSupplier even though it is deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
drcrallen committed Sep 27, 2016
1 parent 76ca253 commit d97127a
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
import com.google.common.io.ByteSource;
import com.google.common.io.ByteStreams;
import com.google.common.io.CountingOutputStream;
import com.google.common.io.InputSupplier;
import com.google.common.primitives.Ints;

import java.io.Closeable;
Expand Down Expand Up @@ -144,15 +145,15 @@ public InputStream openStream() throws IOException
return ByteStreams.join(
Iterables.transform(
Arrays.asList("meta", "header", "values"),
new Function<String, ByteSource>()
new Function<String, InputSupplier<InputStream>>()
{
@Override
public ByteSource apply(final String input)
public InputSupplier<InputStream> apply(final String input)
{
return new ByteSource()
return new InputSupplier<InputStream>()
{
@Override
public InputStream openStream() throws IOException
public InputStream getInput() throws IOException
{
return ioPeon.makeInputStream(makeFilename(input));
}
Expand Down

0 comments on commit d97127a

Please sign in to comment.