Class GripFileManager

  • All Implemented Interfaces:
    FileManager

    public class GripFileManager
    extends java.lang.Object
    implements FileManager
    Implementation of FileManager. Saves files into a directory named GRIP in the user's home folder.
    • 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • GRIP_DIRECTORY

        public static final java.io.File GRIP_DIRECTORY
      • IMAGE_DIRECTORY

        public static final java.io.File IMAGE_DIRECTORY
    • Constructor Detail

      • GripFileManager

        public GripFileManager()
    • 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 interface FileManager
        Parameters:
        image - The image to save
        fileName - The file name to save