public final class IOUtils extends Object
Modifier and Type | Field and Description |
---|---|
static int |
MAX_BUFFER_SIZE |
Constructor and Description |
---|
IOUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
closeStream(Closeable stream) |
static boolean |
copyFile(InputStream src,
File dest)
Copy inputStream into the specified file.
|
static boolean |
copyStream(InputStream src,
OutputStream osstream) |
static void |
ensureOrCreatePathAndFile(File contentFile) |
static InputStream |
getContentFileInputStream(ContentFile contentFile) |
public static final int MAX_BUFFER_SIZE
public static void closeStream(Closeable stream)
public static void ensureOrCreatePathAndFile(File contentFile)
public static boolean copyFile(InputStream src, File dest) throws IOException
src
- size
- : inputstream size.dest
- FileNotFoundException
IOException
public static boolean copyStream(InputStream src, OutputStream osstream) throws IOException
IOException
public static InputStream getContentFileInputStream(ContentFile contentFile)
Copyright © 2012-2018 Alfresco Software. All Rights Reserved.