org.jcodec.common
Class IOUtils
java.lang.Object
org.jcodec.common.IOUtils
public class IOUtils
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_BUFFER_SIZE
public static final int DEFAULT_BUFFER_SIZE
- See Also:
- Constant Field Values
IOUtils
public IOUtils()
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.