Interface ToFileWriter<T>

    • Method Detail

      • mkdirs

        static void mkdirs​(java.io.File dir)
        Make sure this directory exists, create if necessary
      • output

        static java.io.OutputStream output​(java.io.File file)
      • serializeObjectToFile

        static <T extends java.io.Serializable> void serializeObjectToFile​(T object,
                                                                           java.io.File file)
      • close

        default void close()
                    throws java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface AutoConsumer<T>
        Specified by:
        close in interface java.io.Closeable
        Throws:
        java.io.IOException