public abstract class RepeatingInputStream extends Object
Modifier and Type | Method and Description |
---|---|
static InputStream |
of(byte... b)
Get an InputStream that will return the specified byte[] forever.
|
static InputStream |
withLimit(int limit,
byte... b)
Get an InputStream that will return the specified byte sequence until a
total of
limit bytes have been returned. |
public static InputStream of(byte... b)
b
- byte[] to repeatInputStream
NullPointerException
- if b
is null
public static InputStream withLimit(int limit, byte... b)
limit
bytes have been returned.limit
- intb
- byte[] to repeatInputStream
NullPointerException
- if b
is null
Copyright © 2008-2016 The Apache Software Foundation. All Rights Reserved.