public final class InputStreamSuppliers extends Object
| Modifier and Type | Method and Description |
|---|---|
static InputStreamSupplier |
bytes(byte[] bytes) |
static InputStreamSupplier |
bytes(byte[] bytes,
int offset,
int size) |
static InputStreamSupplier |
file(Path path) |
static InputStreamSupplier |
file(String path) |
static InputStreamSupplier |
inputStream(InputStream inputStream) |
static InputStreamSupplier |
producer(ByteProducer producer) |
static InputStreamSupplier |
resource(String name) |
static InputStreamSupplier |
resource(String name,
Class<?> clazz) |
static InputStreamSupplier |
resource(String name,
ClassLoader classLoader) |
static InputStreamSupplier |
url(String url) |
static InputStreamSupplier |
url(URL url) |
public static InputStreamSupplier bytes(byte[] bytes, int offset, int size)
public static InputStreamSupplier bytes(byte[] bytes)
public static InputStreamSupplier file(Path path)
public static InputStreamSupplier file(String path)
public static InputStreamSupplier url(URL url)
public static InputStreamSupplier url(String url)
public static InputStreamSupplier inputStream(InputStream inputStream)
public static InputStreamSupplier resource(String name)
public static InputStreamSupplier resource(String name, Class<?> clazz)
public static InputStreamSupplier resource(String name, ClassLoader classLoader)
public static InputStreamSupplier producer(ByteProducer producer)
Copyright © 2015. All rights reserved.