-
public class IOUtilEncapsulates utility methods for IO and compression routines.
-
-
Field Summary
Fields Modifier and Type Field Description private final static ByteArraySpinAllocatorBUFFER_ALLOCATORprivate final LongblockSizepublic final static IOUtilINSTANCE
-
Method Summary
Modifier and Type Method Description final static BooleanisRemovableFile(File file)Returns 'true' if the method is invoked in Windows & the file is removable. final static BooleanisRemoteFile(File file)Returns 'true' if the method is invoked in Windows & the file is remote. final static BooleanisRamDiskFile(File file)Returns 'true' if the method is invoked in Windows & the file exists on a RAM disk.. final static LonggetAdjustedFileLength(File file)final static LonggetDirectorySize(File dir, String extension, Boolean recursive)final static UnitcopyStreams(InputStream source, OutputStream target, ByteArraySpinAllocator bufferAllocator)final static UnitcopyStreams(InputStream source, Long sourceLen, OutputStream target, ByteArraySpinAllocator bufferAllocator)final static UnitdeleteRecursively(File dir)final static UnitdeleteFile(File file)final static Array<File>listFiles(File directory)final static Array<File>listFiles(File directory, FilenameFilter filter)final static Array<File>listFiles(File directory, FileFilter filter)final static IntegerreadFully(InputStream input, ByteArray bytes, Integer len)final static IntegerreadFully(InputStream input, ByteArray bytes)final static ByteArraySpinAllocatorgetBUFFER_ALLOCATOR()final LonggetBlockSize()-
-
Method Detail
-
isRemovableFile
final static Boolean isRemovableFile(File file)
Returns 'true' if the method is invoked in Windows & the file is removable.
-
isRemoteFile
final static Boolean isRemoteFile(File file)
Returns 'true' if the method is invoked in Windows & the file is remote.
-
isRamDiskFile
final static Boolean isRamDiskFile(File file)
Returns 'true' if the method is invoked in Windows & the file exists on a RAM disk..
-
getAdjustedFileLength
final static Long getAdjustedFileLength(File file)
-
getDirectorySize
final static Long getDirectorySize(File dir, String extension, Boolean recursive)
-
copyStreams
final static Unit copyStreams(InputStream source, OutputStream target, ByteArraySpinAllocator bufferAllocator)
-
copyStreams
final static Unit copyStreams(InputStream source, Long sourceLen, OutputStream target, ByteArraySpinAllocator bufferAllocator)
-
deleteRecursively
final static Unit deleteRecursively(File dir)
-
deleteFile
final static Unit deleteFile(File file)
-
listFiles
final static Array<File> listFiles(File directory, FilenameFilter filter)
-
listFiles
final static Array<File> listFiles(File directory, FileFilter filter)
-
readFully
@JvmOverloads() final static Integer readFully(InputStream input, ByteArray bytes, Integer len)
-
readFully
@JvmOverloads() final static Integer readFully(InputStream input, ByteArray bytes)
-
getBUFFER_ALLOCATOR
final static ByteArraySpinAllocator getBUFFER_ALLOCATOR()
-
getBlockSize
final Long getBlockSize()
-
-
-
-