org.jcodec.common
Class IOUtils

java.lang.Object
  extended by org.jcodec.common.IOUtils

public class IOUtils
extends Object


Field Summary
static int DEFAULT_BUFFER_SIZE
           
 
Constructor Summary
IOUtils()
           
 
Method Summary
static void closeQuietly(Closeable c)
           
static int copy(InputStream input, OutputStream output)
           
static void forceMkdir(File directory)
           
static byte[] readFileToByteArray(File file)
           
static byte[] toByteArray(InputStream input)
           
static String toString(InputStream is)
           
static void writeStringToFile(File file, String str)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_BUFFER_SIZE

public static final int DEFAULT_BUFFER_SIZE
See Also:
Constant Field Values
Constructor Detail

IOUtils

public IOUtils()
Method Detail

closeQuietly

public static void closeQuietly(Closeable c)

toByteArray

public static byte[] toByteArray(InputStream input)
                          throws IOException
Throws:
IOException

copy

public static int copy(InputStream input,
                       OutputStream output)
                throws IOException
Throws:
IOException

readFileToByteArray

public static byte[] readFileToByteArray(File file)
                                  throws IOException
Throws:
IOException

toString

public static String toString(InputStream is)
                       throws IOException
Throws:
IOException

writeStringToFile

public static void writeStringToFile(File file,
                                     String str)
                              throws IOException
Throws:
IOException

forceMkdir

public static void forceMkdir(File directory)
                       throws IOException
Throws:
IOException


Copyright © 2013. All Rights Reserved.