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 repeatInputStreamNullPointerException - if b is nullpublic static InputStream withLimit(int limit, byte... b)
limit bytes have been returned.limit - intb - byte[] to repeatInputStreamNullPointerException - if b is nullCopyright © 2008-2016 The Apache Software Foundation. All Rights Reserved.