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
IOException
public static String readString(InputStream from, Charset charset) throws IOException
IOException
public static void copy(InputStream from, OutputStream to) throws IOException
IOException
public static <T> T read(InputStream from, net.codestory.http.io.InputStreams.ForBytes<T> transform) throws IOException
IOException
public static InputStream getResourceAsStream(String path)
Copyright © 2014. All Rights Reserved.