public class FileCopyUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
copyToByteArray(InputStream in)
Copy the contents of the given InputStream into a new byte array.
|
static String |
copyToString(Reader in)
Copy the contents of the given Reader into a String.
|
public static String copyToString(Reader in) throws IOException
in - the reader to copy fromIOException - in case of I/O errorspublic static byte[] copyToByteArray(InputStream in) throws IOException
in - the stream to copy fromIOException - in case of I/O errorsCopyright © 2017. All rights reserved.