Class VFSUtils
java.lang.Object
net.thevpc.common.vfs.impl.VFSUtils
Created by vpc on 1/1/17.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringconcatPath(String... paths) static voidstatic voidcopy(File inFile, VFile outFile, FileFilter filter) static voidcopy(InputStream inStream, OutputStream outStream, int bufferSize) static voidstatic voidstatic voidcopy(VFile inFile, VFile outFile, VFileFilter filter) static FilecopyNativeTempFile(VFile inFile) static FileNamegetFileName(String name) static String[]getParentAndName(String path) static StringgetParentPath(String file) static StringgetPathName(String path) static StringgetPathParent(String path) static booleanisParentOf(String parent, String child) static voidstatic voidmove(VFile inFile, VFile outFile, VFileFilter filter) static byte[]readBytes(InputStream ios) static String[]static StringtoPathParts(String path, boolean compact) static voidvisit(VFile inFile, String path, VFileVisitor visitor, VFileFilter filter) static voidvisit(VFile inFile, VFileVisitor visitor, VFileFilter filter) static StringwildcardToRegex(String pattern) static voidwriteBytes(OutputStream o, byte[] bytes)
-
Constructor Details
-
VFSUtils
public VFSUtils()
-
-
Method Details
-
writeBytes
- Throws:
IOException
-
readBytes
- Throws:
IOException
-
getParentPath
-
concatPath
-
toPath
-
getPathParent
-
getParentAndName
-
getPathName
-
toPathParts
-
wildcardToRegex
-
visit
-
visit
-
copy
- Throws:
IOException
-
move
- Throws:
IOException
-
copy
- Throws:
IOException
-
move
- Throws:
IOException
-
copy
- Throws:
IOException
-
copy
public static void copy(InputStream inStream, OutputStream outStream, int bufferSize) throws IOException - Throws:
IOException
-
copy
- Throws:
IOException
-
copy
- Throws:
IOException
-
copyNativeTempFile
- Throws:
IOException
-
isParentOf
-
splitName
-
getFileName
-