public class Streams extends Object
Constructor and Description |
---|
Streams() |
Modifier and Type | Method and Description |
---|---|
static byte[] |
drain(InputStream r) |
static void |
drain(InputStream r,
OutputStream w) |
static void |
drain(InputStream is,
Writer w) |
static void |
drain(Reader r,
OutputStream os) |
static void |
drain(Reader r,
Writer w) |
static String |
getAsString(InputStream is) |
public static void drain(InputStream r, OutputStream w) throws IOException
IOException
public static void drain(Reader r, Writer w) throws IOException
IOException
public static void drain(Reader r, OutputStream os) throws IOException
IOException
public static void drain(InputStream is, Writer w) throws IOException
IOException
public static byte[] drain(InputStream r) throws IOException
IOException
public static String getAsString(InputStream is)
Copyright © 2008–2015 The Apache Software Foundation. All rights reserved.