Package edu.wpi.grip.core
Class GripFileManager
- java.lang.Object
-
- edu.wpi.grip.core.GripFileManager
-
- All Implemented Interfaces:
FileManager
public class GripFileManager extends java.lang.Object implements FileManager
Implementation ofFileManager
. Saves files into a directory named GRIP in the user's home folder.
-
-
Field Summary
Fields Modifier and Type Field Description static java.io.File
GRIP_DIRECTORY
static java.io.File
IMAGE_DIRECTORY
-
Constructor Summary
Constructors Constructor Description GripFileManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
saveImage(byte[] image, java.lang.String fileName)
Saves an array of bytes to a file.
-
-
-
Method Detail
-
saveImage
public void saveImage(byte[] image, java.lang.String fileName)
Description copied from interface:FileManager
Saves an array of bytes to a file.- Specified by:
saveImage
in interfaceFileManager
- Parameters:
image
- The image to savefileName
- The file name to save
-
-