Skip to content

Commit

Permalink
#758 extra ctor
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Apr 3, 2018
1 parent 9955f0e commit 6dddbfe
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/main/java/org/cactoos/io/BytesOf.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintStream;
import java.io.Reader;
import java.nio.charset.Charset;
Expand Down Expand Up @@ -61,6 +62,15 @@ public BytesOf(final Input input) {
this(new InputAsBytes(input));
}

/**
* Ctor.
* @param input The input
* @since 0.29.2
*/
public BytesOf(final InputStream input) {
this(new InputAsBytes(new InputOf(input)));
}

/**
* Ctor.
* @param file The input
Expand Down

0 comments on commit 6dddbfe

Please sign in to comment.