Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.automation.client.jaxrs.util
Class IOUtils

java.lang.Object
  extended by org.nuxeo.ecm.automation.client.jaxrs.util.IOUtils

public class IOUtils
extends Object

Author:
Bogdan Stefanescu

Method Summary
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)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.