Skip to content

Commit

Permalink
extra ctor
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Jun 22, 2017
1 parent 3850f5b commit 5d012b3
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/main/java/org/cactoos/io/BytesAsInput.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
import java.io.InputStream;
import org.cactoos.Bytes;
import org.cactoos.Input;
import org.cactoos.Text;
import org.cactoos.text.ArrayAsBytes;
import org.cactoos.text.TextAsBytes;

Expand All @@ -47,6 +48,15 @@ public final class BytesAsInput implements Input {
*/
private final Bytes source;

/**
* Ctor.
* @param text The text
* @since 0.8
*/
public BytesAsInput(final Text text) {
this(new TextAsBytes(text));
}

/**
* Ctor.
* @param text The text
Expand Down

0 comments on commit 5d012b3

Please sign in to comment.