Package org.wpilib.nativeutils
Class FileUtils
java.lang.Object
org.wpilib.nativeutils.FileUtils
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final char -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic longcopy(InputStream input, OutputStream output, int bufferSize) static longcopyLarge(InputStream input, OutputStream output) static longcopyLarge(InputStream input, OutputStream output, byte[] buffer) static voidcreateParentDirs(File file) static intindexOfExtension(String filename) static intindexOfLastSeparator(String filename) static StringremoveExtension(String filename)
-
Field Details
-
EXTENSION_SEPARATOR
public static final char EXTENSION_SEPARATOR- See Also:
-
DEFAULT_BUFFER_SIZE
public static final int DEFAULT_BUFFER_SIZE- See Also:
-
EOF
public static final int EOF- See Also:
-
-
Constructor Details
-
FileUtils
public FileUtils()
-
-
Method Details
-
indexOfLastSeparator
-
indexOfExtension
-
removeExtension
-
createParentDirs
- Throws:
IOException
-
copy
- Throws:
IOException
-
copyLarge
- Throws:
IOException
-
copyLarge
public static long copyLarge(InputStream input, OutputStream output, byte[] buffer) throws IOException - Throws:
IOException
-