java.lang.Object
com.pjsofts.FileLib
- public final class FileLib
- extends java.lang.Object
Utility methods on string
|
Constructor Summary |
private |
FileLib()
can't be instanciated |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
i18n
private static final java.util.ResourceBundle i18n
formatter
private static java.text.NumberFormat formatter
CACHE_SIZE
private static final int CACHE_SIZE
- Size of the cache used during file r/w in bytes
- See Also:
- Constant Field Values
LENGTH_Ko
public static final long LENGTH_Ko
- See Also:
- Constant Field Values
LENGTH_Mo
public static final long LENGTH_Mo
- See Also:
- Constant Field Values
LENGTH_Go
public static final long LENGTH_Go
- See Also:
- Constant Field Values
LENGTH_To
public static final long LENGTH_To
- See Also:
- Constant Field Values
LENGTH_FLOPPY
public static final long LENGTH_FLOPPY
- See Also:
- Constant Field Values
FileLib
private FileLib()
- can't be instanciated
getFormattedFileLength
public static java.lang.String getFormattedFileLength(long size)
- A readable format for a file size
(with Mo , Ko etc ..)
splitFile
public static java.io.File[] splitFile(FileLib.FileValidator validator,
java.io.File source,
long target_length,
java.io.File todir,
java.lang.String prefix)
- Execute main split action from this parameters
joinFiles
public static void joinFiles(FileLib.FileValidator validator,
java.io.File target,
java.io.File[] sources)
- Concatenate the 'sources' file into the one called 'target' in their respective order.
nioJoinFiles
public static void nioJoinFiles(FileLib.FileValidator validator,
java.io.File target,
java.io.File[] sources)
- same as joinFiles but use native buffers functionnality of jdk1.4