We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cfe1ffa commit 7a38983Copy full SHA for 7a38983
core/src/main/java/edu/wpi/grip/core/FileManager.java
@@ -1,5 +1,15 @@
1
package edu.wpi.grip.core;
2
3
+/**
4
+ * Defines what methods a FileManager implementation must implement.
5
+ */
6
public interface FileManager {
7
+
8
+ /**
9
+ * Saves an array of bytes to a file.
10
+ *
11
+ * @param image The image to save
12
+ * @param fileName The file name to save
13
14
void saveImage(byte[] image, String fileName);
15
}
core/src/main/java/edu/wpi/grip/core/GripFileManager.java
@@ -10,6 +10,9 @@
import static com.google.common.base.Preconditions.checkNotNull;
+ * Implementation of {@code FileManager}. Saves files into a directory named GRIP in the user's home folder.
16
@Singleton
17
public class GripFileManager implements FileManager {
18
0 commit comments