org.nuxeo.ecm.automation.client.jaxrs.util
Class IOUtils
java.lang.Object
org.nuxeo.ecm.automation.client.jaxrs.util.IOUtils
public class IOUtils
- extends Object
- Author:
- Bogdan Stefanescu
copy
public static void copy(InputStream in,
OutputStream out)
throws IOException
- Throws:
IOException
copyToTempFile
public static File copyToTempFile(InputStream in)
throws IOException
- Throws:
IOException
copyToTempFile
public static File copyToTempFile(InputStream in,
boolean closeIn)
throws IOException
- Throws:
IOException
copyToFile
public static void copyToFile(InputStream in,
File file)
throws IOException
- Throws:
IOException
copyToFile
public static void copyToFile(InputStream in,
File file,
boolean closeIn)
throws IOException
- Throws:
IOException
writeToFile
public static void writeToFile(String content,
File file)
throws IOException
- Throws:
IOException
write
public static void write(String content,
OutputStream out)
throws IOException
- Throws:
IOException
read
public static String read(InputStream in)
throws IOException
- Throws:
IOException
read
public static String read(Reader in)
throws IOException
- Throws:
IOException
Copyright © 2011 Nuxeo SAS. All Rights Reserved.