| Constructor and Description |
|---|
VfsLib() |
| Modifier and Type | Method and Description |
|---|---|
static VfsFile |
createTempFile(java.lang.String fileName)
Creates a tempfile, outside the installation directory, so it will work even from read-only files.
|
static VfsFile |
createTempFileFor(VfsFile notherFile)
Returns a temp file for the given VfsFile, by placing it (with the same path) under the /temp hierarchy.
|
static boolean |
directoryExists(VfsDirectory directory)
Returns true if directory exists, false otherwise.
|
static boolean |
fileExists(VfsFile file)
Returns true if file exists, false otherwise.
|
static VfsFile |
joinFiles(VfsFile outputFile,
java.lang.Iterable<VfsFile> parts)
Joins the given files together into the given output file.
|
static VfsFile |
joinFiles(VfsFile outputFile,
java.util.Iterator<VfsFile> parts)
Joins the given files together into the given output file.
|
static VfsFile |
joinFiles(VfsFile outputFile,
VfsFile... parts)
Joins the given files together into the given output file.
|
static boolean |
looksLikeAFile(Path path)
Examines the path string and returns true if it has a period after the last slash (or if it has a period and no slash).
|
static boolean |
looksLikeAFile(java.lang.String path)
Examines the path string and returns true if it has a period after the last slash (or if it has a period and no slash).
|
static java.util.List<VfsFile> |
splitFile(VfsFile source,
ByteSize maximumSize,
VfsDirectory destination)
Splits the given VfsFile into several subfiles in the given destination directory, each with the extension .001, .002, etc.
|
static java.util.List<VfsFile> |
splitFileByMegabytes(VfsFile file,
ByteSize byteSize)
Splits the given VfsFile into several subfiles in the same directory, each with the extension .001, .002, etc.
|
static java.util.List<VfsFile> |
splitFileByMegabytes(VfsFile file,
int megabytes)
Splits the given VfsFile into several subfiles in the same directory, each with the extension .001, .002, etc.
|
static java.util.List<VfsFile> |
splitFileByMegabytes(VfsFile file,
int megabytes,
VfsDirectory destination)
Splits the given VfsFile into several subfiles in the given destination directory, each with the extension .001, .002, etc.
|
static VfsDirectory |
vfsDirectoryFor(java.io.File file)
Creates a VfsDirectory for the given directory, using its discretion as to how to obtain the VFS...
|
static VfsDirectory |
vfsDirectoryFor(java.lang.String directoryPath)
Creates a VfsDirectory for the given path, using its discretion as to how to obtain the VFS...
|
static VfsFile |
vfsFileFor(java.io.File file)
Creates a VfsFile for the given file, using its discretion as to how to obtain the VFS...
|
static VfsFile |
vfsFileFor(java.lang.String filePath)
Creates a VfsFile for the given file path, using its discretion as to how to obtain the VFS...
|
public static VfsFile vfsFileFor(java.io.File file) throws java.io.IOException
java.io.IOExceptionpublic static VfsFile vfsFileFor(java.lang.String filePath) throws java.io.IOException
java.io.IOExceptionpublic static VfsDirectory vfsDirectoryFor(java.io.File file) throws java.io.IOException
java.io.IOExceptionpublic static VfsDirectory vfsDirectoryFor(java.lang.String directoryPath) throws java.io.IOException
java.io.IOExceptionpublic static java.util.List<VfsFile> splitFile(VfsFile source, ByteSize maximumSize, VfsDirectory destination) throws java.io.IOException
java.io.IOExceptionpublic static java.util.List<VfsFile> splitFileByMegabytes(VfsFile file, int megabytes, VfsDirectory destination) throws java.io.IOException
java.io.IOExceptionpublic static java.util.List<VfsFile> splitFileByMegabytes(VfsFile file, int megabytes) throws java.io.IOException
java.io.IOExceptionpublic static java.util.List<VfsFile> splitFileByMegabytes(VfsFile file, ByteSize byteSize) throws java.io.IOException
java.io.IOExceptionpublic static VfsFile joinFiles(VfsFile outputFile, VfsFile... parts) throws java.io.IOException
java.io.IOExceptionpublic static VfsFile joinFiles(VfsFile outputFile, java.util.Iterator<VfsFile> parts) throws java.io.IOException
java.io.IOExceptionpublic static VfsFile joinFiles(VfsFile outputFile, java.lang.Iterable<VfsFile> parts) throws java.io.IOException
java.io.IOExceptionpublic static boolean looksLikeAFile(java.lang.String path)
public static boolean looksLikeAFile(Path path)
public static boolean fileExists(VfsFile file)
file - public static boolean directoryExists(VfsDirectory directory)
directory - public static VfsFile createTempFile(java.lang.String fileName) throws java.io.IOException
java.io.IOExceptionpublic static VfsFile createTempFileFor(VfsFile notherFile) throws java.io.IOException
java.io.IOException