Package edu.wpi.first.nativeutils
Class FileUtils
- java.lang.Object
-
- edu.wpi.first.nativeutils.FileUtils
-
public class FileUtils extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static intDEFAULT_BUFFER_SIZEstatic intEOFstatic charEXTENSION_SEPARATOR
-
Constructor Summary
Constructors Constructor Description FileUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static longcopy(java.io.InputStream input, java.io.OutputStream output, int bufferSize)static longcopyLarge(java.io.InputStream input, java.io.OutputStream output)static longcopyLarge(java.io.InputStream input, java.io.OutputStream output, byte[] buffer)static voidcreateParentDirs(java.io.File file)static intindexOfExtension(java.lang.String filename)static intindexOfLastSeparator(java.lang.String filename)static java.lang.StringremoveExtension(java.lang.String filename)
-
-
-
Field Detail
-
EXTENSION_SEPARATOR
public static final char EXTENSION_SEPARATOR
- See Also:
- Constant Field Values
-
DEFAULT_BUFFER_SIZE
public static final int DEFAULT_BUFFER_SIZE
- See Also:
- Constant Field Values
-
EOF
public static final int EOF
- See Also:
- Constant Field Values
-
-
Method Detail
-
indexOfLastSeparator
public static int indexOfLastSeparator(java.lang.String filename)
-
indexOfExtension
public static int indexOfExtension(java.lang.String filename)
-
removeExtension
public static java.lang.String removeExtension(java.lang.String filename)
-
createParentDirs
public static void createParentDirs(java.io.File file) throws java.io.IOException- Throws:
java.io.IOException
-
copy
public static long copy(java.io.InputStream input, java.io.OutputStream output, int bufferSize) throws java.io.IOException- Throws:
java.io.IOException
-
copyLarge
public static long copyLarge(java.io.InputStream input, java.io.OutputStream output) throws java.io.IOException- Throws:
java.io.IOException
-
copyLarge
public static long copyLarge(java.io.InputStream input, java.io.OutputStream output, byte[] buffer) throws java.io.IOException- Throws:
java.io.IOException
-
-