Package herddb.utils
Class FileUtils
- java.lang.Object
-
- herddb.utils.FileUtils
-
public class FileUtils extends Object
Utilities- Author:
- enrico.olivelli
-
-
Constructor Summary
Constructors Constructor Description FileUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidcleanDirectory(Path directory)static longcopyStreams(InputStream input, OutputStream output)static longcopyStreams(InputStream input, OutputStream output, long sizeToCopy)static byte[]fastReadFile(Path f)static voidforceReleaseBuffer(ByteBuffer buffer)
-
-
-
Method Detail
-
cleanDirectory
public static void cleanDirectory(Path directory) throws IOException
- Throws:
IOException
-
fastReadFile
public static byte[] fastReadFile(Path f) throws IOException
- Throws:
IOException
-
forceReleaseBuffer
public static void forceReleaseBuffer(ByteBuffer buffer)
-
copyStreams
public static long copyStreams(InputStream input, OutputStream output) throws IOException
- Throws:
IOException
-
copyStreams
public static long copyStreams(InputStream input, OutputStream output, long sizeToCopy) throws IOException
- Throws:
IOException
-
-