public class InputStreams extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
copy(InputStream from,
OutputStream to) |
static InputStream |
getResourceAsStream(String path) |
static <T> T |
read(InputStream from,
net.codestory.http.io.InputStreams.ForBytes<T> transform) |
static byte[] |
readBytes(InputStream from) |
static String |
readString(InputStream from,
Charset charset) |
public static byte[] readBytes(InputStream from) throws IOException
IOExceptionpublic static String readString(InputStream from, Charset charset) throws IOException
IOExceptionpublic static void copy(InputStream from, OutputStream to) throws IOException
IOExceptionpublic static <T> T read(InputStream from, net.codestory.http.io.InputStreams.ForBytes<T> transform) throws IOException
IOExceptionpublic static InputStream getResourceAsStream(String path)
Copyright © 2015. All Rights Reserved.