Class FileManager


  • public class FileManager
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      FileManager()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static @Nullable java.lang.String readAsString​(java.lang.String fileName)  
      static <T> java.lang.Object readObject​(java.lang.Class<T> clazz, java.lang.String fileName)  
      static boolean write​(java.lang.String fileName, byte[] data)  
      static boolean writeObject​(java.lang.Object data, java.lang.String fileName)  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FileManager

        public FileManager()
    • Method Detail

      • write

        public static boolean write​(@Nonnull
                                    java.lang.String fileName,
                                    @Nonnull
                                    byte[] data)
      • readAsString

        @Nullable
        public static @Nullable java.lang.String readAsString​(@Nonnull
                                                              java.lang.String fileName)
      • writeObject

        public static boolean writeObject​(@Nonnull
                                          java.lang.Object data,
                                          @Nonnull
                                          java.lang.String fileName)
      • readObject

        public static <T> java.lang.Object readObject​(@Nonnull
                                                      java.lang.Class<T> clazz,
                                                      @Nonnull
                                                      java.lang.String fileName)