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.FileGRIP_DIRECTORYstatic java.io.FileIMAGE_DIRECTORY
-
Constructor Summary
Constructors Constructor Description GripFileManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsaveImage(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:FileManagerSaves an array of bytes to a file.- Specified by:
saveImagein interfaceFileManager- Parameters:
image- The image to savefileName- The file name to save
-
-