public class IOUtils extends Object
Modifier and Type | Method and Description |
---|---|
static void |
copy(InputStream in,
OutputStream out) |
static void |
copyToFile(InputStream in,
File file) |
static void |
copyToFile(InputStream in,
File file,
boolean closeIn) |
static File |
copyToTempFile(InputStream in) |
static File |
copyToTempFile(InputStream in,
boolean closeIn) |
static String |
read(InputStream in) |
static String |
read(Reader in) |
static void |
write(String content,
OutputStream out) |
static void |
writeToFile(String content,
File file) |
public static void copy(InputStream in, OutputStream out) throws IOException
IOException
public static File copyToTempFile(InputStream in) throws IOException
IOException
public static File copyToTempFile(InputStream in, boolean closeIn) throws IOException
IOException
public static void copyToFile(InputStream in, File file) throws IOException
IOException
public static void copyToFile(InputStream in, File file, boolean closeIn) throws IOException
IOException
public static void writeToFile(String content, File file) throws IOException
IOException
public static void write(String content, OutputStream out) throws IOException
IOException
public static String read(InputStream in) throws IOException
IOException
public static String read(Reader in) throws IOException
IOException
Copyright © 2015 Nuxeo SA. All rights reserved.