Module de.carne

Class UserFile


  • public final class UserFile
    extends java.lang.Object
    Utility class used to create user preferences files with user only access rights.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.nio.channels.FileChannel open​(java.nio.file.Path file, @NonNull java.nio.file.OpenOption... extraOptions)
      Create or open a user preferences file.
      • Methods inherited from class java.lang.Object

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

      • open

        public static java.nio.channels.FileChannel open​(java.nio.file.Path file,
                                                         @NonNull java.nio.file.OpenOption... extraOptions)
                                                  throws java.io.IOException
        Create or open a user preferences file.
        Parameters:
        file - the file to open
        extraOptions - the extra OpenOption to use.
        Returns:
        the opened FileChannel.
        Throws:
        java.io.IOException - if an I/O error occurs.